aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 21:03:30 -0500
committerLinus Torvalds <torvalds@linux-foundation.org>2012-01-06 21:03:30 -0500
commitd3d0b024348c040f0d6851e2e59fc961677d5169 (patch)
treeab018edaa027ad069c54beb9cb3d0c5b5efc2198
parent6ed23fd6c08b3ffa17c1f841098d2fa2ab3a59dd (diff)
parent9d5c627323dcf0983d699d26dd486272fc98bef2 (diff)
Merge branch 'amba-modalias' of git://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm
* 'amba-modalias' of git://ftp.arm.linux.org.uk/pub/linux/arm/kernel/git-cur/linux-2.6-arm: sound: aaci: Enable module alias autogeneration for AMBA drivers watchdog: sp805: Enable module alias autogeneration for AMBA drivers fbdev: amba: Enable module alias autogeneration for AMBA drivers serial: pl011: Enable module alias autogeneration for AMBA drivers serial: pl010: Enable module alias autogeneration for AMBA drivers spi: pl022: Enable module alias autogeneration for AMBA drivers rtc: pl031: Enable module alias autogeneration for AMBA drivers rtc: pl030: Enable module alias autogeneration for AMBA drivers mmc: mmci: Enable module alias autogeneration for AMBA drivers input: ambakmi: Enable module alias autogeneration for AMBA drivers gpio: pl061: Enable module alias autogeneration for AMBA drivers dmaengine: pl330: Enable module alias autogeneration for AMBA drivers dmaengine: pl08x: Enable module alias autogeneration for AMBA drivers hwrng: nomadik: Enable module alias autogeneration for AMBA drivers ARM: amba: Auto-generate AMBA driver module aliases during modpost ARM: amba: Move definition of struct amba_id to mod_devicetable.h
-rw-r--r--drivers/amba/bus.c4
-rw-r--r--drivers/char/hw_random/nomadik-rng.c2
-rw-r--r--drivers/dma/amba-pl08x.c2
-rw-r--r--drivers/dma/pl330.c2
-rw-r--r--drivers/gpio/gpio-pl061.c2
-rw-r--r--drivers/input/serio/ambakmi.c2
-rw-r--r--drivers/mmc/host/mmci.c2
-rw-r--r--drivers/rtc/rtc-pl030.c2
-rw-r--r--drivers/rtc/rtc-pl031.c2
-rw-r--r--drivers/spi/spi-pl022.c2
-rw-r--r--drivers/tty/serial/amba-pl010.c2
-rw-r--r--drivers/tty/serial/amba-pl011.c2
-rw-r--r--drivers/video/amba-clcd.c2
-rw-r--r--drivers/watchdog/sp805_wdt.c2
-rw-r--r--include/linux/amba/bus.h7
-rw-r--r--include/linux/mod_devicetable.h18
-rw-r--r--scripts/mod/file2alias.c72
-rw-r--r--sound/arm/aaci.c2
18 files changed, 123 insertions, 6 deletions
diff --git a/drivers/amba/bus.c b/drivers/amba/bus.c
index bd230e801131..936c98cb2475 100644
--- a/drivers/amba/bus.c
+++ b/drivers/amba/bus.c
@@ -52,6 +52,10 @@ static int amba_uevent(struct device *dev, struct kobj_uevent_env *env)
52 int retval = 0; 52 int retval = 0;
53 53
54 retval = add_uevent_var(env, "AMBA_ID=%08x", pcdev->periphid); 54 retval = add_uevent_var(env, "AMBA_ID=%08x", pcdev->periphid);
55 if (retval)
56 return retval;
57
58 retval = add_uevent_var(env, "MODALIAS=amba:d%08X", pcdev->periphid);
55 return retval; 59 return retval;
56} 60}
57#else 61#else
diff --git a/drivers/char/hw_random/nomadik-rng.c b/drivers/char/hw_random/nomadik-rng.c
index 52e08ca3ccd7..3d3c1e6703b4 100644
--- a/drivers/char/hw_random/nomadik-rng.c
+++ b/drivers/char/hw_random/nomadik-rng.c
@@ -95,6 +95,8 @@ static struct amba_id nmk_rng_ids[] = {
95 {0, 0}, 95 {0, 0},
96}; 96};
97 97
98MODULE_DEVICE_TABLE(amba, nmk_rng_ids);
99
98static struct amba_driver nmk_rng_driver = { 100static struct amba_driver nmk_rng_driver = {
99 .drv = { 101 .drv = {
100 .owner = THIS_MODULE, 102 .owner = THIS_MODULE,
diff --git a/drivers/dma/amba-pl08x.c b/drivers/dma/amba-pl08x.c
index b7cbd1ab1db1..0698695e8bf9 100644
--- a/drivers/dma/amba-pl08x.c
+++ b/drivers/dma/amba-pl08x.c
@@ -2054,6 +2054,8 @@ static struct amba_id pl08x_ids[] = {
2054 { 0, 0 }, 2054 { 0, 0 },
2055}; 2055};
2056 2056
2057MODULE_DEVICE_TABLE(amba, pl08x_ids);
2058
2057static struct amba_driver pl08x_amba_driver = { 2059static struct amba_driver pl08x_amba_driver = {
2058 .drv.name = DRIVER_NAME, 2060 .drv.name = DRIVER_NAME,
2059 .id_table = pl08x_ids, 2061 .id_table = pl08x_ids,
diff --git a/drivers/dma/pl330.c b/drivers/dma/pl330.c
index 571041477ab2..2d8d1b041d95 100644
--- a/drivers/dma/pl330.c
+++ b/drivers/dma/pl330.c
@@ -990,6 +990,8 @@ static struct amba_id pl330_ids[] = {
990 { 0, 0 }, 990 { 0, 0 },
991}; 991};
992 992
993MODULE_DEVICE_TABLE(amba, pl330_ids);
994
993#ifdef CONFIG_PM_RUNTIME 995#ifdef CONFIG_PM_RUNTIME
994static int pl330_runtime_suspend(struct device *dev) 996static int pl330_runtime_suspend(struct device *dev)
995{ 997{
diff --git a/drivers/gpio/gpio-pl061.c b/drivers/gpio/gpio-pl061.c
index 4102f63230fd..8f79c03049f3 100644
--- a/drivers/gpio/gpio-pl061.c
+++ b/drivers/gpio/gpio-pl061.c
@@ -346,6 +346,8 @@ static struct amba_id pl061_ids[] = {
346 { 0, 0 }, 346 { 0, 0 },
347}; 347};
348 348
349MODULE_DEVICE_TABLE(amba, pl061_ids);
350
349static struct amba_driver pl061_gpio_driver = { 351static struct amba_driver pl061_gpio_driver = {
350 .drv = { 352 .drv = {
351 .name = "pl061_gpio", 353 .name = "pl061_gpio",
diff --git a/drivers/input/serio/ambakmi.c b/drivers/input/serio/ambakmi.c
index 12abc50508e5..8407d5b0ced8 100644
--- a/drivers/input/serio/ambakmi.c
+++ b/drivers/input/serio/ambakmi.c
@@ -195,6 +195,8 @@ static struct amba_id amba_kmi_idtable[] = {
195 { 0, 0 } 195 { 0, 0 }
196}; 196};
197 197
198MODULE_DEVICE_TABLE(amba, amba_kmi_idtable);
199
198static struct amba_driver ambakmi_driver = { 200static struct amba_driver ambakmi_driver = {
199 .drv = { 201 .drv = {
200 .name = "kmi-pl050", 202 .name = "kmi-pl050",
diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 0726e59fd418..fa8dd2fda4b2 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -1502,6 +1502,8 @@ static struct amba_id mmci_ids[] = {
1502 { 0, 0 }, 1502 { 0, 0 },
1503}; 1503};
1504 1504
1505MODULE_DEVICE_TABLE(amba, mmci_ids);
1506
1505static struct amba_driver mmci_driver = { 1507static struct amba_driver mmci_driver = {
1506 .drv = { 1508 .drv = {
1507 .name = DRIVER_NAME, 1509 .name = DRIVER_NAME,
diff --git a/drivers/rtc/rtc-pl030.c b/drivers/rtc/rtc-pl030.c
index 1d28d4451dae..02111fee077e 100644
--- a/drivers/rtc/rtc-pl030.c
+++ b/drivers/rtc/rtc-pl030.c
@@ -174,6 +174,8 @@ static struct amba_id pl030_ids[] = {
174 { 0, 0 }, 174 { 0, 0 },
175}; 175};
176 176
177MODULE_DEVICE_TABLE(amba, pl030_ids);
178
177static struct amba_driver pl030_driver = { 179static struct amba_driver pl030_driver = {
178 .drv = { 180 .drv = {
179 .name = "rtc-pl030", 181 .name = "rtc-pl030",
diff --git a/drivers/rtc/rtc-pl031.c b/drivers/rtc/rtc-pl031.c
index ff1b84bd9bb5..a952c8de1dd7 100644
--- a/drivers/rtc/rtc-pl031.c
+++ b/drivers/rtc/rtc-pl031.c
@@ -420,6 +420,8 @@ static struct amba_id pl031_ids[] = {
420 {0, 0}, 420 {0, 0},
421}; 421};
422 422
423MODULE_DEVICE_TABLE(amba, pl031_ids);
424
423static struct amba_driver pl031_driver = { 425static struct amba_driver pl031_driver = {
424 .drv = { 426 .drv = {
425 .name = "rtc-pl031", 427 .name = "rtc-pl031",
diff --git a/drivers/spi/spi-pl022.c b/drivers/spi/spi-pl022.c
index 5559b2299198..7026af195683 100644
--- a/drivers/spi/spi-pl022.c
+++ b/drivers/spi/spi-pl022.c
@@ -2432,6 +2432,8 @@ static struct amba_id pl022_ids[] = {
2432 { 0, 0 }, 2432 { 0, 0 },
2433}; 2433};
2434 2434
2435MODULE_DEVICE_TABLE(amba, pl022_ids);
2436
2435static struct amba_driver pl022_driver = { 2437static struct amba_driver pl022_driver = {
2436 .drv = { 2438 .drv = {
2437 .name = "ssp-pl022", 2439 .name = "ssp-pl022",
diff --git a/drivers/tty/serial/amba-pl010.c b/drivers/tty/serial/amba-pl010.c
index efdf92c3a352..0d91a540bf11 100644
--- a/drivers/tty/serial/amba-pl010.c
+++ b/drivers/tty/serial/amba-pl010.c
@@ -795,6 +795,8 @@ static struct amba_id pl010_ids[] = {
795 { 0, 0 }, 795 { 0, 0 },
796}; 796};
797 797
798MODULE_DEVICE_TABLE(amba, pl010_ids);
799
798static struct amba_driver pl010_driver = { 800static struct amba_driver pl010_driver = {
799 .drv = { 801 .drv = {
800 .name = "uart-pl010", 802 .name = "uart-pl010",
diff --git a/drivers/tty/serial/amba-pl011.c b/drivers/tty/serial/amba-pl011.c
index 00233af1acc4..6958594f2fc0 100644
--- a/drivers/tty/serial/amba-pl011.c
+++ b/drivers/tty/serial/amba-pl011.c
@@ -1994,6 +1994,8 @@ static struct amba_id pl011_ids[] = {
1994 { 0, 0 }, 1994 { 0, 0 },
1995}; 1995};
1996 1996
1997MODULE_DEVICE_TABLE(amba, pl011_ids);
1998
1997static struct amba_driver pl011_driver = { 1999static struct amba_driver pl011_driver = {
1998 .drv = { 2000 .drv = {
1999 .name = "uart-pl011", 2001 .name = "uart-pl011",
diff --git a/drivers/video/amba-clcd.c b/drivers/video/amba-clcd.c
index 2cda6ba0939b..0a2cce7285be 100644
--- a/drivers/video/amba-clcd.c
+++ b/