mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
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>
This commit is contained in:
parent
b927ddf2dd
commit
8d4e59ec94
1 changed files with 1 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue