eeepc-laptop: make input device a child of the platform device
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Fri, 28 Aug 2009 12:56:36 +0000 (12:56 +0000)
committerLen Brown <len.brown@intel.com>
Fri, 28 Aug 2009 19:21:11 +0000 (15:21 -0400)
commitf2a9d5e8a649c606f520b7a7b9f4f46fba79c327
tree5e7e64548abc259ce49f0a996478d8a869308aa8
parent1e7798547fe6920ae27fb92c9202353e9e4c55db
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