[PATCH] Driver Core: Add platform_get_resource_byname & platform_get_resource_byirq
Adds the ability to find a resource or irq on a platform device by its resource name. This patch also tweaks how resource names get set. Before, resources names were set to pdev->dev.bus_id, now that only happens if the resource name has not been previous set. All of this allows us to find a resource without assuming what order the resources are in. Signed-off-by:Kumar Gala <kumar.gala@freescale.com> Signed-off-by:
Greg Kroah-Hartman <greg@kroah.com>
Showing
Please register or sign in to comment