[PATCH] Allow overlapping resources for platform devices
authorKumar Gala <galak@gate.crashing.org>
Mon, 28 Nov 2005 16:15:39 +0000 (10:15 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 5 Jan 2006 00:18:08 +0000 (16:18 -0800)
commitd960bb4db9f422b5c3c82e0dfd6c8213a4fc430d
treea5d79803da3f7e20fa55f6fd1b8ec9c74ef0c322
parente22dafbcd7a579c29a424d5203b5b33b131948a7
[PATCH] Allow overlapping resources for platform devices

There are cases in which a device's memory mapped registers overlap
with another device's memory mapped registers.  On several PowerPC
devices this occurs for the MDIO bus, whose registers tended to overlap
with one of the ethernet controllers.

By switching from request_resource to insert_resource we can register
the MDIO bus as a proper platform device and not hack around how we
handle its memory mapped registers.

Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/base/platform.c