Commit 8d4e59ec authored by Corentin Labbe's avatar Corentin Labbe Committed by Rafael J. Wysocki

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: default avatarCorentin Labbe <clabbe@baylibre.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent b927ddf2
...@@ -1345,7 +1345,7 @@ static const struct pnp_device_id rtc_ids[] = { ...@@ -1345,7 +1345,7 @@ static const struct pnp_device_id rtc_ids[] = {
MODULE_DEVICE_TABLE(pnp, rtc_ids); MODULE_DEVICE_TABLE(pnp, rtc_ids);
static struct pnp_driver cmos_pnp_driver = { static struct pnp_driver cmos_pnp_driver = {
.name = (char *) driver_name, .name = driver_name,
.id_table = rtc_ids, .id_table = rtc_ids,
.probe = cmos_pnp_probe, .probe = cmos_pnp_probe,
.remove = cmos_pnp_remove, .remove = cmos_pnp_remove,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment