* [patch 2.6.26-rc8] drivers/power: fix platform driver hotplug/coldplug
@ 2008-07-02 7:13 David Brownell
2008-07-02 8:49 ` Andrew Morton
0 siblings, 1 reply; 3+ messages in thread
From: David Brownell @ 2008-07-02 7:13 UTC (permalink / raw)
To: Andrew Morton; +Cc: kay.sievers, mreimer, Anton Vorontsov, lkml
From: Kay Sievers <kay.sievers@vrfy.org>
Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform
modalias is prefixed with "platform:". Add MODULE_ALIAS() to the
hotpluggable "power" drivers drivers, to re-enable auto loading.
Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
[ dbrownell@users.sourceforge.net: one was missing ]
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
---
drivers/power/ds2760_battery.c | 2 ++
drivers/power/pda_power.c | 2 ++
2 files changed, 4 insertions(+)
--- a/drivers/power/ds2760_battery.c 2008-07-01 23:49:46.000000000 -0700
+++ b/drivers/power/ds2760_battery.c 2008-07-01 23:51:48.000000000 -0700
@@ -433,6 +433,8 @@ static int ds2760_battery_resume(struct
#endif /* CONFIG_PM */
+MODULE_ALIAS("platform:ds2760-battery");
+
static struct platform_driver ds2760_battery_driver = {
.driver = {
.name = "ds2760-battery",
--- a/drivers/power/pda_power.c 2008-07-02 00:10:18.000000000 -0700
+++ b/drivers/power/pda_power.c 2008-07-02 00:10:36.000000000 -0700
@@ -362,6 +362,8 @@ static int pda_power_resume(struct platf
#define pda_power_resume NULL
#endif /* CONFIG_PM */
+MODULE_ALIAS("platform:pda-power");
+
static struct platform_driver pda_power_pdrv = {
.driver = {
.name = "pda-power",
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 2.6.26-rc8] drivers/power: fix platform driver hotplug/coldplug
2008-07-02 7:13 [patch 2.6.26-rc8] drivers/power: fix platform driver hotplug/coldplug David Brownell
@ 2008-07-02 8:49 ` Andrew Morton
2008-07-02 9:21 ` David Brownell
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2008-07-02 8:49 UTC (permalink / raw)
To: David Brownell; +Cc: kay.sievers, mreimer, Anton Vorontsov, lkml
On Wed, 2 Jul 2008 00:13:14 -0700 David Brownell <david-b@pacbell.net> wrote:
> From: Kay Sievers <kay.sievers@vrfy.org>
>
> Since 43cc71eed1250755986da4c0f9898f9a635cb3bf
Linus chucks a wobbly if we quote bare SHA hashes at him. I updated
the changelog appropriately.
>, the platform
> modalias is prefixed with "platform:". Add MODULE_ALIAS() to the
> hotpluggable "power" drivers drivers, to re-enable auto loading.
>
> Signed-off-by: Kay Sievers <kay.sievers@vrfy.org>
> [ dbrownell@users.sourceforge.net: one was missing ]
> Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
> ---
> drivers/power/ds2760_battery.c | 2 ++
> drivers/power/pda_power.c | 2 ++
> 2 files changed, 4 insertions(+)
>
> --- a/drivers/power/ds2760_battery.c 2008-07-01 23:49:46.000000000 -0700
> +++ b/drivers/power/ds2760_battery.c 2008-07-01 23:51:48.000000000 -0700
> @@ -433,6 +433,8 @@ static int ds2760_battery_resume(struct
>
> #endif /* CONFIG_PM */
>
> +MODULE_ALIAS("platform:ds2760-battery");
> +
> static struct platform_driver ds2760_battery_driver = {
> .driver = {
> .name = "ds2760-battery",
> --- a/drivers/power/pda_power.c 2008-07-02 00:10:18.000000000 -0700
> +++ b/drivers/power/pda_power.c 2008-07-02 00:10:36.000000000 -0700
> @@ -362,6 +362,8 @@ static int pda_power_resume(struct platf
> #define pda_power_resume NULL
> #endif /* CONFIG_PM */
>
> +MODULE_ALIAS("platform:pda-power");
> +
> static struct platform_driver pda_power_pdrv = {
> .driver = {
> .name = "pda-power",
Do we think this is needed in 2.6.26?
In 2.6.25.x?
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [patch 2.6.26-rc8] drivers/power: fix platform driver hotplug/coldplug
2008-07-02 8:49 ` Andrew Morton
@ 2008-07-02 9:21 ` David Brownell
0 siblings, 0 replies; 3+ messages in thread
From: David Brownell @ 2008-07-02 9:21 UTC (permalink / raw)
To: Andrew Morton; +Cc: kay.sievers, mreimer, Anton Vorontsov, lkml
On Wednesday 02 July 2008, Andrew Morton wrote:
> Do we think this is needed in 2.6.26?
>
> In 2.6.25.x?
I don't think either. Arguably this particular type
of driver should always be statically linked. And
these are new enough that they weren't hit by the
regression (fix) aspect of $PATCH.
- Dave
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-07-02 9:21 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-02 7:13 [patch 2.6.26-rc8] drivers/power: fix platform driver hotplug/coldplug David Brownell
2008-07-02 8:49 ` Andrew Morton
2008-07-02 9:21 ` David Brownell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox