Skip to content

Commit

Permalink
[PATCH] Allow overlapping resources for platform devices
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Kumar Gala authored and Greg Kroah-Hartman committed Jan 5, 2006
1 parent e22dafb commit d960bb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ int platform_device_add(struct platform_device *pdev)
p = &ioport_resource;
}

if (p && request_resource(p, r)) {
if (p && insert_resource(p, r)) {
printk(KERN_ERR
"%s: failed to claim resource %d\n",
pdev->dev.bus_id, i);
Expand Down

0 comments on commit d960bb4

Please sign in to comment.