]> git.baikalelectronics.ru Git - kernel.git/commit
watchdog: at32ap700x_wdt: register misc device last in probe() function
authorHans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Tue, 8 Jun 2010 06:44:32 +0000 (08:44 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Thu, 17 Jun 2010 09:56:57 +0000 (09:56 +0000)
commit4a0e390c8b3b6de85057bd43e27b5b8226537c2f
treeda7fa43a1bd1ccaf2a0dae164a98001a8fa55721
parent1a451a989fbca441bd8016fb43ee3b9b16e8322a
watchdog: at32ap700x_wdt: register misc device last in probe() function

This patch reworks the probe() function in the at32ap700x_wdt driver, this to
make sure the miscdev is properly initialized and the driver is ready to be
accessed.

Reported-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
Signed-off-by: Wim Van sebroeck <wim@iguana.be>
drivers/watchdog/at32ap700x_wdt.c