• Radu Rendec's avatar
    watchdog: xen_wdt: use the watchdog subsystem · 18cffd68
    Radu Rendec authored
    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: default avatarRadu Rendec <rrendec@arista.com>
    Reviewed-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
    Signed-off-by: default avatarWim Van Sebroeck <wim@iguana.be>
    18cffd68
xen_wdt.c 4.93 KB