watchdog: i6300esb: support multiple devices
authorRadu Rendec <rrendec@arista.com>
Thu, 26 Oct 2017 16:10:14 +0000 (17:10 +0100)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 28 Dec 2017 19:45:17 +0000 (20:45 +0100)
commitcf73120ba43172e181905133cfcc5711485fd4b3
treefc0682e3333f4531b2b95038a9399ad50b534d92
parent7af4ac8772a8f9af40f998671e6d09f5de137854
watchdog: i6300esb: support multiple devices

Support multiple i6300esb devices simultaneously, by removing the single
device restriction in the original design and leveraging the multiple
device support of the watchdog subsystem.

This patch replaces the global definitions of watchdog device data with
a dynamically allocated structure. This structure is allocated during
device probe, so multiple independent structures can be allocated if
multiple devices are probed.

Signed-off-by: Radu Rendec <rrendec@arista.com>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/i6300esb.c