mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
Input: maplecontrol - remove unused mdev->driver assignment
The driver field in struct maple_device is no longer used since
commit 1795cf48b3 ("sh/maple: clean maple bus code") which removed
the reading of this field.
Remove the unused assignment to mdev->driver and the now unused
mdrv variable in probe_maple_controller.
Assisted-by: Antigravity:gemini-3.5-flash
Link: https://patch.msgid.link/20260703-b4-maple-cleanup-v1-12-41e424964da5@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
f18dd62d83
commit
37a1c20052
|
|
@ -97,7 +97,6 @@ static int probe_maple_controller(struct device *dev)
|
|||
};
|
||||
|
||||
struct maple_device *mdev = to_maple_dev(dev);
|
||||
struct maple_driver *mdrv = to_maple_driver(dev->driver);
|
||||
int i, error;
|
||||
struct dc_pad *pad;
|
||||
struct input_dev *idev;
|
||||
|
|
@ -140,9 +139,6 @@ static int probe_maple_controller(struct device *dev)
|
|||
error = input_register_device(idev);
|
||||
if (error)
|
||||
goto fail;
|
||||
|
||||
mdev->driver = mdrv;
|
||||
|
||||
return 0;
|
||||
|
||||
fail:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user