MIPS: AR7: Make board code register ar7_wdt as a platform device
authorFlorian Fainelli <florian@openwrt.org>
Wed, 15 Jul 2009 10:09:34 +0000 (12:09 +0200)
committerRalf Baechle <ralf@linux-mips.org>
Thu, 17 Sep 2009 18:07:48 +0000 (20:07 +0200)
commitd47fbb5996269f3081deb7a1b4ba717557256555
tree7f2c8fce4a9d8d37708692a9a654974f197d362c
parent6f4c7b32e156ac67ae170554cfba0929272c7adf
MIPS: AR7: Make board code register ar7_wdt as a platform device

This patch makes the board code register the ar7_wdt driver as a platform
device. We move the dynamic resource calculation here since the driver
should not be aware of the AR7 SoC version it is running on.

Signed-off-by: Florian Fainelli <florian@openwrt.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ar7/platform.c