diff --git a/MAINTAINERS b/MAINTAINERS index 211109eda3141ef808583d3be05891811785774f..88bf75088b5acfc23d8f07626bf4048b7155b1a7 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13381,7 +13381,9 @@ F: Documentation/devicetree/bindings/iio/magnetometer/pni,rm3100.txt PNP SUPPORT M: "Rafael J. Wysocki" <rafael.j.wysocki@intel.com> +L: linux-acpi@vger.kernel.org S: Maintained +F: include/linux/pnp.h F: drivers/pnp/ POSIX CLOCKS and TIMERS diff --git a/drivers/rtc/rtc-cmos.c b/drivers/rtc/rtc-cmos.c index b795fe4cbd2e9bb51a97292c6d6b4777a633a348..82bfe009a50f73954fdde0fb68fffb17a7547674 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, diff --git a/include/linux/pnp.h b/include/linux/pnp.h index 3b12fd28af78d1142c9503d3908d6c39823184ce..b18dca67253d662b42a68d2d5cb336cd069f9352 100644 --- a/include/linux/pnp.h +++ b/include/linux/pnp.h @@ -379,7 +379,7 @@ struct pnp_id { }; struct pnp_driver { - char *name; + const char *name; const struct pnp_device_id *id_table; unsigned int flags; int (*probe) (struct pnp_dev *dev, const struct pnp_device_id *dev_id);