OSDN Git Service

eeepc-laptop: make input device a child of the platform device
authorCorentin Chary <corentincj@iksaif.net>
Tue, 29 Sep 2009 14:03:23 +0000 (16:03 +0200)
committerCorentin Chary <corentincj@iksaif.net>
Wed, 30 Sep 2009 20:17:45 +0000 (22:17 +0200)
commiteaa5b8c8f88d44aa2dfc54b9a4819224cedf70fd
treec0b470f4b585818d9864f9987d1b2d1677b0b18e
parent01bf253bd3a3a1b60f10c35c6d139ccc8f70bf36
eeepc-laptop: make input device a child of the platform device

Sysfs showed the ehotk input device as a "virtual" device - lies!
The input device is provided by a physical device, the eeepc platform.

This requires that we move the creation of the input device to come
after platform device is created.  Input initialization is moved from
ehotk_check() [sic] to a new function called eeepc_input_init().  This
brings the input device into line with the other eeepc-laptop devices.

Also, refuse to load if we fail to register the input device.

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