Skip to content

Commit

Permalink
backlight: PTR_ERR return of wrong pointer in cr_backlight_probe()
Browse files Browse the repository at this point in the history
Return the PTR_ERR of the correct pointer.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
  • Loading branch information
Roel Kluin authored and Richard Purdie committed Dec 17, 2009
1 parent 9905a43 commit 5b0582e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/video/backlight/cr_bllcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ static int cr_backlight_probe(struct platform_device *pdev)
if (IS_ERR(ldp)) {
backlight_device_unregister(bdp);
pci_dev_put(lpc_dev);
return PTR_ERR(bdp);
return PTR_ERR(ldp);
}

pci_read_config_dword(lpc_dev, CRVML_REG_GPIOBAR,
Expand Down

0 comments on commit 5b0582e

Please sign in to comment.