Skip to content

Commit

Permalink
ACPI: video: Fix null pointer in appledisplay driver
Browse files Browse the repository at this point in the history
commit "ACPI: video: Add dev argument for backlight_device_register"
519ab5f
broke the apple display driver.

Signed-off-by: Michael Hanselmann <linux-kernel@hansmi.ch>
Signed-off-by: Len Brown <len.brown@intel.com>
  • Loading branch information
Michael Hanselmann authored and Len Brown committed Feb 10, 2007
1 parent 3945ac3 commit d78112e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/usb/misc/appledisplay.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ static int appledisplay_probe(struct usb_interface *iface,
/* Register backlight device */
snprintf(bl_name, sizeof(bl_name), "appledisplay%d",
atomic_inc_return(&count_displays) - 1);
pdata->bd = backlight_device_register(bl_name, NULL, NULL,
pdata->bd = backlight_device_register(bl_name, NULL, pdata
&appledisplay_bl_data);
if (IS_ERR(pdata->bd)) {
err("appledisplay: Backlight registration failed");
Expand Down

0 comments on commit d78112e

Please sign in to comment.