Commit d960bb4db9f422b5c3c82e0dfd6c8213a4fc430d

Authored by Kumar Gala
Committed by Greg Kroah-Hartman
1 parent e22dafbcd7

[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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/base/platform.c
... ... @@ -257,7 +257,7 @@
257 257 p = &ioport_resource;
258 258 }
259 259  
260   - if (p && request_resource(p, r)) {
  260 + if (p && insert_resource(p, r)) {
261 261 printk(KERN_ERR
262 262 "%s: failed to claim resource %d\n",
263 263 pdev->dev.bus_id, i);