diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2009-12-09 01:36:26 +0000 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2009-12-09 15:45:30 -0500 |
commit | d112ef95d4ec1ee7fe7123e3f21e4aac0d57570c (patch) | |
tree | 78f33d5f4a64b273ee2a6d77baf46c7985b3a9af /drivers/platform | |
parent | 6b30eb7d211840ba1a03f855d9e7b80a921368f2 (diff) | |
download | blackbird-op-linux-d112ef95d4ec1ee7fe7123e3f21e4aac0d57570c.tar.gz blackbird-op-linux-d112ef95d4ec1ee7fe7123e3f21e4aac0d57570c.zip |
thinkpad-acpi: adopt input device
Properly init the parent field of the input device. Thanks to Alan
Jenkins, who noted this problem in a different driver.
Reported-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'drivers/platform')
-rw-r--r-- | drivers/platform/x86/thinkpad_acpi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c index 86418cd3e59d..dd8bd072c79a 100644 --- a/drivers/platform/x86/thinkpad_acpi.c +++ b/drivers/platform/x86/thinkpad_acpi.c @@ -8375,6 +8375,7 @@ static int __init thinkpad_acpi_module_init(void) PCI_VENDOR_ID_IBM; tpacpi_inputdev->id.product = TPACPI_HKEY_INPUT_PRODUCT; tpacpi_inputdev->id.version = TPACPI_HKEY_INPUT_VERSION; + tpacpi_inputdev->dev.parent = &tpacpi_pdev->dev; } for (i = 0; i < ARRAY_SIZE(ibms_init); i++) { ret = ibm_init(&ibms_init[i]); |