summaryrefslogtreecommitdiff
path: root/drivers/rtc
diff options
context:
space:
mode:
authorCorentin Labbe <clabbe@baylibre.com>2020-03-06 07:53:01 +0000
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-03-17 18:32:07 +0100
commit8d4e59ec948a959940c413b22b28dcca224455cb (patch)
tree48c7f7b5aa49cf9aedb560bd8c1216fd97f823eb /drivers/rtc
parentb927ddf2dd1807e62946129cfbc7754fdcde85c4 (diff)
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/rtc')
-rw-r--r--drivers/rtc/rtc-cmos.c2
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,