[PATCH] driver: remove unnecessary void* conversions..
From: Dong Chuanjian
Date: Wed Jun 29 2022 - 02:12:38 EST
remove unnecessary void* type casting.
Signed-off-by: Dong Chuanjian <chuanjian@xxxxxxxxxxxx>
---
drivers/clocksource/timer-ti-dm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c
index 3e52c5226c4d..5d89629507b7 100644
--- a/drivers/clocksource/timer-ti-dm.c
+++ b/drivers/clocksource/timer-ti-dm.c
@@ -299,7 +299,7 @@ static struct omap_dm_timer *_omap_dm_timer_request(int req_type, void *data)
cap = *(u32 *)data;
break;
case REQUEST_BY_NODE:
- np = (struct device_node *)data;
+ np = data;
break;
default:
/* REQUEST_ANY */
--
2.18.2