]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
greybus: interface: fix type in enable error message
authorJohan Hovold <johan@hovoldconsulting.com>
Mon, 9 May 2016 12:40:09 +0000 (14:40 +0200)
committerGreg Kroah-Hartman <gregkh@google.com>
Fri, 13 May 2016 10:02:57 +0000 (12:02 +0200)
Fix type of PTR_ERR in an interface-enable error message.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/interface.c

index aed45bcef376abe531b9d3d0a54272c565937d65..0b829388a13cb892478d381d2a9bb35a66c26986 100644 (file)
@@ -564,7 +564,7 @@ int gb_interface_enable(struct gb_interface *intf)
        /* Establish control connection */
        control = gb_control_create(intf);
        if (IS_ERR(control)) {
-               dev_err(&intf->dev, "failed to create control device: %lu\n",
+               dev_err(&intf->dev, "failed to create control device: %ld\n",
                                PTR_ERR(control));
                return PTR_ERR(control);
        }