backlight: PTR_ERR return of wrong pointer in cr_backlight_probe()

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>
This commit is contained in:
Roel Kluin 2009-12-07 14:35:32 +01:00 коммит произвёл Richard Purdie
Родитель 9905a43b2d
Коммит 5b0582ea42
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -201,7 +201,7 @@ static int cr_backlight_probe(struct platform_device *pdev)
if (IS_ERR(ldp)) { if (IS_ERR(ldp)) {
backlight_device_unregister(bdp); backlight_device_unregister(bdp);
pci_dev_put(lpc_dev); pci_dev_put(lpc_dev);
return PTR_ERR(bdp); return PTR_ERR(ldp);
} }
pci_read_config_dword(lpc_dev, CRVML_REG_GPIOBAR, pci_read_config_dword(lpc_dev, CRVML_REG_GPIOBAR,