maple: more robust device detection.
authorAdrian McMenamin <adrian@newgolddream.dyndns.info>
Wed, 6 Feb 2008 23:51:21 +0000 (23:51 +0000)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 14 Feb 2008 05:22:07 +0000 (14:22 +0900)
commitb3c69e248176f7a123d519d63e7c0d68783d52c3
tree5cd739142e1a293f4d38642202591609d6c0a3d3
parentb9482378916abb9a1e0a2334187cdc67f2deda2c
maple: more robust device detection.

Replacement second-in-series patch:

This patch fixes up memory leaks and, by delaying initialisation, makes
device detection more robust.

It also makes clearer the difference between struct maple_device and
struct device, as well as cleaning up the interrupt request code
(without changing its function in any way).

Also now removes redundant registration checking.

Signed-off-by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/sh/maple/maple.c