From: u.kleine-koenig@pengutronix.de (Uwe Kleine-König)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost
Date: Mon, 21 Nov 2011 14:10:22 +0100 [thread overview]
Message-ID: <20111121131022.GE30612@pengutronix.de> (raw)
In-Reply-To: <1321872510-2562-3-git-send-email-dave.martin@linaro.org>
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/ |
next prev parent reply other threads:[~2011-11-21 13:10 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 10:48 [PATCH 0/2 REPOST] ARM: amba: Enable module alias autogeneration for AMBA drivers Dave Martin
2011-11-21 10:48 ` [PATCH 1/2] ARM: amba: Move definition of struct amba_id to mod_devicetable.h Dave Martin
2011-11-21 10:48 ` [PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost Dave Martin
2011-11-21 13:10 ` Uwe Kleine-König [this message]
2011-11-21 14:18 ` Dave Martin
2011-11-21 12:31 ` [PATCH 0/2 REPOST] ARM: amba: Enable module alias autogeneration for AMBA drivers Russell King - ARM Linux
2011-11-21 14:16 ` Dave Martin
-- strict thread matches above, loose matches on Subject: below --
2011-10-14 10:04 [PATCH 0/2] " Dave Martin
2011-10-14 10:04 ` [PATCH 2/2] ARM: amba: Auto-generate AMBA driver module aliases during modpost Dave Martin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20111121131022.GE30612@pengutronix.de \
--to=u.kleine-koenig@pengutronix.de \
--cc=linux-arm-kernel@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).