diff options
Diffstat (limited to 'drivers/usb/misc/appledisplay.c')
-rw-r--r-- | drivers/usb/misc/appledisplay.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/usb/misc/appledisplay.c b/drivers/usb/misc/appledisplay.c index 1eb9e4162cc6..4d2952f1fb13 100644 --- a/drivers/usb/misc/appledisplay.c +++ b/drivers/usb/misc/appledisplay.c | |||
@@ -57,7 +57,7 @@ | |||
57 | .bInterfaceProtocol = 0x00 | 57 | .bInterfaceProtocol = 0x00 |
58 | 58 | ||
59 | /* table of devices that work with this driver */ | 59 | /* table of devices that work with this driver */ |
60 | static struct usb_device_id appledisplay_table [] = { | 60 | static const struct usb_device_id appledisplay_table[] = { |
61 | { APPLEDISPLAY_DEVICE(0x9218) }, | 61 | { APPLEDISPLAY_DEVICE(0x9218) }, |
62 | { APPLEDISPLAY_DEVICE(0x9219) }, | 62 | { APPLEDISPLAY_DEVICE(0x9219) }, |
63 | { APPLEDISPLAY_DEVICE(0x921c) }, | 63 | { APPLEDISPLAY_DEVICE(0x921c) }, |
@@ -179,7 +179,7 @@ static int appledisplay_bl_get_brightness(struct backlight_device *bd) | |||
179 | return pdata->msgdata[1]; | 179 | return pdata->msgdata[1]; |
180 | } | 180 | } |
181 | 181 | ||
182 | static struct backlight_ops appledisplay_bl_data = { | 182 | static const struct backlight_ops appledisplay_bl_data = { |
183 | .get_brightness = appledisplay_bl_get_brightness, | 183 | .get_brightness = appledisplay_bl_get_brightness, |
184 | .update_status = appledisplay_bl_update_status, | 184 | .update_status = appledisplay_bl_update_status, |
185 | }; | 185 | }; |
@@ -283,6 +283,7 @@ static int appledisplay_probe(struct usb_interface *iface, | |||
283 | &appledisplay_bl_data); | 283 | &appledisplay_bl_data); |
284 | if (IS_ERR(pdata->bd)) { | 284 | if (IS_ERR(pdata->bd)) { |
285 | dev_err(&iface->dev, "Backlight registration failed\n"); | 285 | dev_err(&iface->dev, "Backlight registration failed\n"); |
286 | retval = PTR_ERR(pdata->bd); | ||
286 | goto error; | 287 | goto error; |
287 | } | 288 | } |
288 | 289 | ||