eeepc-laptop: re-add check for eeepc->backlight == NULL
commit325fb8e9aeddf7bf8a7a892869dca00e7305c41e
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Thu, 3 Dec 2009 07:45:15 +0000 (3 07:45 +0000)
committerLen Brown <len.brown@intel.com>
Wed, 9 Dec 2009 20:54:33 +0000 (9 15:54 -0500)
tree7171a806baf28188a576b95a5682d19dc783877e
parentf90be874303eddc53c199083a37bc44d65ab8351
eeepc-laptop: re-add check for eeepc->backlight == NULL

As Corentin points out, we do not create a backlight device if the ACPI
video driver is able to provide equivalent functionality. So we do need
to check before we try to update the backlight device.

We now ignore brightness events completely if we have not created a
backlight device.  This is slightly more cautious than the original
check.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Len Brown <len.brown@intel.com>
drivers/platform/x86/eeepc-laptop.c