[PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Mon Nov 21 08:10:22 EST 2011
Hello Dave,
On Mon, Nov 21, 2011 at 10:48:30AM +0000, Dave Martin wrote:
> --- a/drivers/amba/bus.c
> +++ b/drivers/amba/bus.c
> @@ -52,7 +52,14 @@ static int amba_uevent(struct device *dev, struct kobj_uevent_env *env)
> int retval = 0;
>
> retval = add_uevent_var(env, "AMBA_ID=%08x", pcdev->periphid);
> - return retval;
> + if (retval)
> + return retval;
> +
> + retval = add_uevent_var(env, "MODALIAS=amba:d%08X", pcdev->periphid);
> + if (retval)
> + return retval;
> +
> + return 0;
Just return retval here?
Best regards
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
More information about the linux-arm-kernel
mailing list