summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2026-07-03 22:57:36 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2026-10-14 10:18:22 -0700
commitac2d32a19f9e457e2baa5166bec3da825abc5083 (patch)
treefed335c8c5a4918d2e8374310a98839acf335b09
parent37a1c20052235e505a0fd27ce687d366e98d3b08 (diff)
downloadlinux-next-ac2d32a19f9e457e2baa5166bec3da825abc5083.tar.gz
linux-next-ac2d32a19f9e457e2baa5166bec3da825abc5083.zip
Input: maple_keyb - remove unused mdev->driver assignment
The driver field in struct maple_device is no longer used since commit 1795cf48b322 ("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_kbd. Assisted-by: Antigravity:gemini-3.5-flash Link: https://patch.msgid.link/20260703-b4-maple-cleanup-v1-13-41e424964da5@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
-rw-r--r--drivers/input/keyboard/maple_keyb.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/input/keyboard/maple_keyb.c b/drivers/input/keyboard/maple_keyb.c
index 7bd3f6871292..219bc0cc490e 100644
--- a/drivers/input/keyboard/maple_keyb.c
+++ b/drivers/input/keyboard/maple_keyb.c
@@ -161,13 +161,11 @@ static void dc_kbd_close(struct input_dev *dev)
static int probe_maple_kbd(struct device *dev)
{
struct maple_device *mdev;
- struct maple_driver *mdrv;
int i, error;
struct dc_kbd *kbd;
struct input_dev *idev;
mdev = to_maple_dev(dev);
- mdrv = to_maple_driver(dev->driver);
kbd = kzalloc_obj(*kbd);
if (!kbd) {
@@ -206,9 +204,6 @@ static int probe_maple_kbd(struct device *dev)
error = input_register_device(idev);
if (error)
goto fail_register;
-
- mdev->driver = mdrv;
-
return error;
fail_register: