From: Tony Lindgren Date: Fri, 28 Oct 2022 10:35:26 +0000 (+0300) Subject: clocksource/drivers/timer-ti-dm: Fix warning for omap_timer_match X-Git-Tag: v6.1.8~1797 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b0a5f9e153ef06f47ae74ecb69beaf575f5f08c;p=platform%2Fkernel%2Flinux-starfive.git clocksource/drivers/timer-ti-dm: Fix warning for omap_timer_match [ Upstream commit 9688498b1648aa98a3ee45d9f07763c099f6fb12 ] We can now get a warning for 'omap_timer_match' defined but not used. Let's fix this by dropping of_match_ptr for omap_timer_match. Reported-by: kernel test robot Fixes: ab0bbef3ae0f ("clocksource/drivers/timer-ti-dm: Make timer selectable for ARCH_K3") Signed-off-by: Tony Lindgren Link: https://lore.kernel.org/r/20221028103526.40319-1-tony@atomide.com Signed-off-by: Daniel Lezcano Signed-off-by: Sasha Levin --- diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index cad29ded3a48..00af1a8e34fb 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -1258,7 +1258,7 @@ static struct platform_driver omap_dm_timer_driver = { .remove = omap_dm_timer_remove, .driver = { .name = "omap_timer", - .of_match_table = of_match_ptr(omap_timer_match), + .of_match_table = omap_timer_match, .pm = &omap_dm_timer_pm_ops, }, };