[PATCH v1 1/2] clocksource: sh_mtu2: Drop unused assignment of platform_device_id

From: Uwe Kleine-König (The Capable Hub)

Date: Wed Jun 17 2026 - 05:25:03 EST


The driver explicitly sets the .driver_data member of struct
platform_device_id to zero without relying on that value. Drop these
unused assignments.

While touching this array drop the comma after the list terminator and
use a named initializer for .name.

Signed-off-by: Uwe Kleine-König (The Capable Hub) <u.kleine-koenig@xxxxxxxxxxxx>
---
drivers/clocksource/sh_mtu2.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/clocksource/sh_mtu2.c b/drivers/clocksource/sh_mtu2.c
index 1997639b113e..3aca86d6a2d4 100644
--- a/drivers/clocksource/sh_mtu2.c
+++ b/drivers/clocksource/sh_mtu2.c
@@ -484,8 +484,8 @@ static int sh_mtu2_probe(struct platform_device *pdev)
}

static const struct platform_device_id sh_mtu2_id_table[] = {
- { "sh-mtu2", 0 },
- { },
+ { .name = "sh-mtu2" },
+ { }
};
MODULE_DEVICE_TABLE(platform, sh_mtu2_id_table);

--
2.47.3