Skip to content

Commit

Permalink
rtc: cmos: remove useless cast for driver_name
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Corentin Labbe authored and Rafael J. Wysocki committed Mar 17, 2020
1 parent b927ddf commit 8d4e59e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/rtc/rtc-cmos.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8d4e59e

Please sign in to comment.