On 19-08-2013 10:51, Julia Lawall wrote:
Not really related to Julia's patch, apart from making it more obvious that there's a bug here.diff --git a/drivers/usb/musb/musb_dsps.c b/drivers/usb/musb/musb_dsps.c index 4ffbaac..f2f9710 100644 --- a/drivers/usb/musb/musb_dsps.c +++ b/drivers/usb/musb/musb_dsps.c @@ -357,9 +357,6 @@ static int dsps_musb_init(struct musb *musb) u32 rev, val;r = platform_get_resource_byname(parent, IORESOURCE_MEM, "control");- if (!r) - return -EINVAL; - reg_base = devm_ioremap_resource(dev, r); if (!musb->ctrl_base) return -EINVAL;
I believe it is reg_base that needs to be checked, right?
Svenning -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

