lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <200807020018.47634.david-b@pacbell.net>
Date:	Wed, 2 Jul 2008 00:18:47 -0700
From:	David Brownell <david-b@...bell.net>
To:	Andrew Morton <akpm@...ux-foundation.org>
Cc:	lkml <linux-kernel@...r.kernel.org>, kay.sievers@...y.org,
	philipp.zabel@...il.com, Russell King <rmk@....linux.org.uk>,
	Ben Dooks <ben-linux@...ff.org>
Subject: [patch 2.6.26-rc8] mfd: fix platform driver hotplug/coldplug

From: Kay Sievers <kay.sievers@...y.org>

Since 43cc71eed1250755986da4c0f9898f9a635cb3bf, the platform
modalias is prefixed with "platform:". Add MODULE_ALIAS() to
the MFD platform drivers, to re-enable auto loading.

Signed-off-by: Kay Sievers <kay.sievers@...y.org>
[ dbrownell@...rs.sourceforge.net: one was missing ]
Signed-off-by: David Brownell <dbrownell@...rs.sourceforge.net>
---
 drivers/mfd/htc-pasic3.c |    2 ++
 drivers/mfd/mcp-sa11x0.c |    2 ++
 drivers/mfd/sm501.c      |    2 ++
 3 files changed, 6 insertions(+)

--- a/drivers/mfd/htc-pasic3.c	2008-07-02 00:15:20.000000000 -0700
+++ b/drivers/mfd/htc-pasic3.c	2008-07-02 00:15:31.000000000 -0700
@@ -238,6 +238,8 @@ static int pasic3_remove(struct platform
 	return 0;
 }
 
+MODULE_ALIAS("platform:pasic3");
+
 static struct platform_driver pasic3_driver = {
 	.driver		= {
 		.name	= "pasic3",
--- a/drivers/mfd/mcp-sa11x0.c	2008-07-02 00:10:11.000000000 -0700
+++ b/drivers/mfd/mcp-sa11x0.c	2008-07-02 00:13:41.000000000 -0700
@@ -242,6 +242,8 @@ static int mcp_sa11x0_resume(struct plat
 /*
  * The driver for the SA11x0 MCP port.
  */
+MODULE_ALIAS("platform:sa11x0-mcp");
+
 static struct platform_driver mcp_sa11x0_driver = {
 	.probe		= mcp_sa11x0_probe,
 	.remove		= mcp_sa11x0_remove,
--- a/drivers/mfd/sm501.c	2008-07-02 00:10:11.000000000 -0700
+++ b/drivers/mfd/sm501.c	2008-07-02 00:13:41.000000000 -0700
@@ -1378,6 +1378,8 @@ static struct pci_driver sm501_pci_drv =
 	.remove		= sm501_pci_remove,
 };
 
+MODULE_ALIAS("platform:sm501");
+
 static struct platform_driver sm501_plat_drv = {
 	.driver		= {
 		.name	= "sm501",
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ