On Tue, Nov 14, 2017 at 04:23:49PM +0000, Radu Rendec wrote: > Change the xen_wdt driver to use the watchdog subsystem instead of > registering and manipulating the char device directly through the misc > API. This is mainly getting rid of the "write" and "ioctl" methods and > part of the watchdog control logic (which are all implemented by the > watchdog subsystem). > > Even though the watchdog subsystem supports registering and handling > multiple watchdog devices at the same time, the xen_wdt driver has an > inherent limitation of only one device due to the way the Xen hypervisor > exposes watchdog functionality. However, the driver can now coexist with > other watchdog devices (supported by different drivers). > > Signed-off-by: Radu Rendec <rrendec@xxxxxxxxxx> > --- > drivers/watchdog/xen_wdt.c | 254 +++++++++++---------------------------------- > 1 file changed, 59 insertions(+), 195 deletions(-) > > diff --git a/drivers/watchdog/xen_wdt.c b/drivers/watchdog/xen_wdt.c > index 5dd5c3494d55..4e00419bd47d 100644 > --- a/drivers/watchdog/xen_wdt.c > +++ b/drivers/watchdog/xen_wdt.c > @@ -9,9 +9,8 @@ > * 2 of the License, or (at your option) any later version. > */ > > -#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt > - > -#define DRV_NAME "wdt" > +#define DRV_NAME "xen_wdt" > +#define DEV_NAME "watchdog" [ ... ] > > +static const struct platform_device_id xen_wdt_id_table[] = { > + { .name = DEV_NAME }, I understand we are way into bikeshedding territory, and I was inclined to let this just go, but this is way too generic for a platform device ID, sorry. Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-watchdog" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html