From ae0f6454bbe74df324e47041e68018649ce0bcba Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Mon, 9 May 2016 14:40:09 +0200 Subject: [PATCH] greybus: interface: fix type in enable error message Fix type of PTR_ERR in an interface-enable error message. Signed-off-by: Johan Hovold Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/interface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/greybus/interface.c b/drivers/staging/greybus/interface.c index aed45bcef376..0b829388a13c 100644 --- a/drivers/staging/greybus/interface.c +++ b/drivers/staging/greybus/interface.c @@ -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); }