watchdog: omap: put struct watchdog_device into driver data
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 27 Apr 2015 09:23:00 +0000 (11:23 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 22 Jun 2015 13:54:05 +0000 (15:54 +0200)
commitd2f78268ba583f75d5a67d44b8ef4b1560d6f597
tree1fafadaa8ccc2b4909da788f263fc539e82a9480
parenta4f741e3e157c3a5c8aea5f2ea62b692fbf17338
watchdog: omap: put struct watchdog_device into driver data

This way only a single allocation is needed (per device). Also this
simplifies the data structure used by the driver because there is no
need anymore to link from one struct to the other (by means of
watchdog_{set,get}_drvdata).

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/omap_wdt.c