Skip to content

Commit d3d0b02

Browse files
committed
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
2 parents 6ed23fd + 9d5c627 commit d3d0b02

18 files changed

Lines changed: 123 additions & 6 deletions

File tree

‎drivers/amba/bus.c‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ static int amba_uevent(struct device *dev, struct kobj_uevent_env *env)
5252
int retval = 0;
5353

5454
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);
5559
return retval;
5660
}
5761
#else

‎drivers/char/hw_random/nomadik-rng.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ static struct amba_id nmk_rng_ids[] = {
9595
{0, 0},
9696
};
9797

98+
MODULE_DEVICE_TABLE(amba, nmk_rng_ids);
99+
98100
static struct amba_driver nmk_rng_driver = {
99101
.drv = {
100102
.owner = THIS_MODULE,

‎drivers/dma/amba-pl08x.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2054,6 +2054,8 @@ static struct amba_id pl08x_ids[] = {
20542054
{ 0, 0 },
20552055
};
20562056

2057+
MODULE_DEVICE_TABLE(amba, pl08x_ids);
2058+
20572059
static struct amba_driver pl08x_amba_driver = {
20582060
.drv.name = DRIVER_NAME,
20592061
.id_table = pl08x_ids,

‎drivers/dma/pl330.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -990,6 +990,8 @@ static struct amba_id pl330_ids[] = {
990990
{ 0, 0 },
991991
};
992992

993+
MODULE_DEVICE_TABLE(amba, pl330_ids);
994+
993995
#ifdef CONFIG_PM_RUNTIME
994996
static int pl330_runtime_suspend(struct device *dev)
995997
{

‎drivers/gpio/gpio-pl061.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,8 @@ static struct amba_id pl061_ids[] = {
346346
{ 0, 0 },
347347
};
348348

349+
MODULE_DEVICE_TABLE(amba, pl061_ids);
350+
349351
static struct amba_driver pl061_gpio_driver = {
350352
.drv = {
351353
.name = "pl061_gpio",

‎drivers/input/serio/ambakmi.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ static struct amba_id amba_kmi_idtable[] = {
195195
{ 0, 0 }
196196
};
197197

198+
MODULE_DEVICE_TABLE(amba, amba_kmi_idtable);
199+
198200
static struct amba_driver ambakmi_driver = {
199201
.drv = {
200202
.name = "kmi-pl050",

‎drivers/mmc/host/mmci.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,8 @@ static struct amba_id mmci_ids[] = {
15021502
{ 0, 0 },
15031503
};
15041504

1505+
MODULE_DEVICE_TABLE(amba, mmci_ids);
1506+
15051507
static struct amba_driver mmci_driver = {
15061508
.drv = {
15071509
.name = DRIVER_NAME,

‎drivers/rtc/rtc-pl030.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,8 @@ static struct amba_id pl030_ids[] = {
174174
{ 0, 0 },
175175
};
176176

177+
MODULE_DEVICE_TABLE(amba, pl030_ids);
178+
177179
static struct amba_driver pl030_driver = {
178180
.drv = {
179181
.name = "rtc-pl030",

‎drivers/rtc/rtc-pl031.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,8 @@ static struct amba_id pl031_ids[] = {
420420
{0, 0},
421421
};
422422

423+
MODULE_DEVICE_TABLE(amba, pl031_ids);
424+
423425
static struct amba_driver pl031_driver = {
424426
.drv = {
425427
.name = "rtc-pl031",

‎drivers/spi/spi-pl022.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2432,6 +2432,8 @@ static struct amba_id pl022_ids[] = {
24322432
{ 0, 0 },
24332433
};
24342434

2435+
MODULE_DEVICE_TABLE(amba, pl022_ids);
2436+
24352437
static struct amba_driver pl022_driver = {
24362438
.drv = {
24372439
.name = "ssp-pl022",

0 commit comments

Comments
 (0)