diff options
author | Corentin Labbe <clabbe@baylibre.com> | 2020-03-06 08:53:01 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-03-17 18:32:07 +0100 |
commit | 8d4e59ec948a959940c413b22b28dcca224455cb (patch) | |
tree | 48c7f7b5aa49cf9aedb560bd8c1216fd97f823eb /drivers | |
parent | PNP: constify driver name (diff) | |
download | linux-8d4e59ec948a959940c413b22b28dcca224455cb.tar.xz linux-8d4e59ec948a959940c413b22b28dcca224455cb.zip |
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 <clabbe@baylibre.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/rtc/rtc-cmos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index b795fe4cbd2e..82bfe009a50f 100644 --- a/drivers/rtc/rtc-cmos.c +++ b/drivers/rtc/rtc-cmos.c @@ -1345,7 +1345,7 @@ static const struct pnp_device_id rtc_ids[] = { MODULE_DEVICE_TABLE(pnp, rtc_ids); static struct pnp_driver cmos_pnp_driver = { - .name = (char *) driver_name, + .name = driver_name, .id_table = rtc_ids, .probe = cmos_pnp_probe, .remove = cmos_pnp_remove, |