Skip to content

Commit 8d4e59e

Browse files
montjoierafaeljw
authored andcommitted
rtc: cmos: remove useless cast for driver_name
Now the pnp_driver name is "const char *", there are no need to cast driver_name. Signed-off-by: Corentin Labbe <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
1 parent b927ddf commit 8d4e59e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/rtc/rtc-cmos.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1345,7 +1345,7 @@ static const struct pnp_device_id rtc_ids[] = {
13451345
MODULE_DEVICE_TABLE(pnp, rtc_ids);
13461346

13471347
static struct pnp_driver cmos_pnp_driver = {
1348-
.name = (char *) driver_name,
1348+
.name = driver_name,
13491349
.id_table = rtc_ids,
13501350
.probe = cmos_pnp_probe,
13511351
.remove = cmos_pnp_remove,

0 commit comments

Comments
 (0)