[PATCH v2 4/5] watchdog: mena21: Do not use device pointer from struct watchdog_device

2015-12-24 Thread Guenter Roeck
The device pointer in struct watchdog_device has a different lifetime than the driver code and should not be used in drivers. Use the pointer to the parent device instead. Signed-off-by: Guenter Roeck --- v2: Print messages using parent device drivers/watchdog/mena21_wdt.c | 4 ++-- 1 file

[PATCH v2 4/5] watchdog: mena21: Do not use device pointer from struct watchdog_device

2015-12-24 Thread Guenter Roeck
The device pointer in struct watchdog_device has a different lifetime than the driver code and should not be used in drivers. Use the pointer to the parent device instead. Signed-off-by: Guenter Roeck --- v2: Print messages using parent device drivers/watchdog/mena21_wdt.c