diff options
| author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-08 02:47:34 -0700 |
|---|---|---|
| committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2026-10-14 10:21:06 -0700 |
| commit | 2b4bcdd40ca00695ed21980f3bc7860823d1423e (patch) | |
| tree | e374eec705783918ca482b4b516b1af5deaf0037 /rust/kernel | |
| parent | fc535ce753aa941af0f658277aa3e026e6db361a (diff) | |
Input: tps6507x-ts - fix input device parent assignment
Assigning the MFD parent device (tsc->dev) instead of the platform
device (&pdev->dev) as the parent device after
devm_input_allocate_device(&pdev->dev) splits devres management across
two devices. As a result, input_register_device() attaches the devm
unregistration action to the MFD parent device rather than the platform
device, leaving the input device registered when the platform driver
unbinds.
devm_input_allocate_device(&pdev->dev) already sets
input_dev->dev.parent to &pdev->dev. Drop the redundant and erroneous
assignment.
Fixes: 2e2a0db8c88d ("Input: tps6507x-ts - update to devm_* API")
Assisted-by: LLM
Link: https://patch.msgid.link/20261008094736.918137-4-dmitry.torokhov@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'rust/kernel')
0 files changed, 0 insertions, 0 deletions
