diff options
author | Russell King <rmk@dyn-67.arm.linux.org.uk> | 2005-09-08 11:04:41 -0400 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-09-08 11:04:41 -0400 |
commit | 6df29debb7fc04ac3f92038c57437f40bab4e72d (patch) | |
tree | fbf9c8697c39c587471cbf18736c3692b55d3605 /drivers | |
parent | caf39e87cc1182f7dae84eefc43ca14d54c78ef9 (diff) |
[SERIAL] Use an enum for serial8250 platform device IDs
Rather than hard-coding the platform device IDs, enumerate them.
We don't particularly care about the actual ID we get, just as
long as they're unique.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/serial/8250.c | 2 | ||||
-rw-r--r-- | drivers/serial/8250_accent.c | 2 | ||||
-rw-r--r-- | drivers/serial/8250_boca.c | 2 | ||||
-rw-r--r-- | drivers/serial/8250_fourport.c | 2 | ||||
-rw-r--r-- | drivers/serial/8250_hub6.c | 2 | ||||
-rw-r--r-- | drivers/serial/8250_mca.c | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/drivers/serial/8250.c b/drivers/serial/8250.c index 30a0a3d10145..5b65e208893b 100644 --- a/drivers/serial/8250.c +++ b/drivers/serial/8250.c | |||
@@ -2536,7 +2536,7 @@ static int __init serial8250_init(void) | |||
2536 | goto out; | 2536 | goto out; |
2537 | 2537 | ||
2538 | serial8250_isa_devs = platform_device_register_simple("serial8250", | 2538 | serial8250_isa_devs = platform_device_register_simple("serial8250", |
2539 | -1, NULL, 0); | 2539 | PLAT8250_DEV_LEGACY, NULL, 0); |
2540 | if (IS_ERR(serial8250_isa_devs)) { | 2540 | if (IS_ERR(serial8250_isa_devs)) { |
2541 | ret = PTR_ERR(serial8250_isa_devs); | 2541 | ret = PTR_ERR(serial8250_isa_devs); |
2542 | goto unreg; | 2542 | goto unreg; |
diff --git a/drivers/serial/8250_accent.c b/drivers/serial/8250_accent.c index 1f2c276063ef..9c10262f2469 100644 --- a/drivers/serial/8250_accent.c +++ b/drivers/serial/8250_accent.c | |||
@@ -29,7 +29,7 @@ static struct plat_serial8250_port accent_data[] = { | |||
29 | 29 | ||
30 | static struct platform_device accent_device = { | 30 | static struct platform_device accent_device = { |
31 | .name = "serial8250", | 31 | .name = "serial8250", |
32 | .id = 2, | 32 | .id = PLAT8250_DEV_ACCENT, |
33 | .dev = { | 33 | .dev = { |
34 | .platform_data = accent_data, | 34 | .platform_data = accent_data, |
35 | }, | 35 | }, |
diff --git a/drivers/serial/8250_boca.c b/drivers/serial/8250_boca.c index 465c9ea1e7a3..3bfe0f7b26fb 100644 --- a/drivers/serial/8250_boca.c +++ b/drivers/serial/8250_boca.c | |||
@@ -43,7 +43,7 @@ static struct plat_serial8250_port boca_data[] = { | |||
43 | 43 | ||
44 | static struct platform_device boca_device = { | 44 | static struct platform_device boca_device = { |
45 | .name = "serial8250", | 45 | .name = "serial8250", |
46 | .id = 3, | 46 | .id = PLAT8250_DEV_BOCA, |
47 | .dev = { | 47 | .dev = { |
48 | .platform_data = boca_data, | 48 | .platform_data = boca_data, |
49 | }, | 49 | }, |
diff --git a/drivers/serial/8250_fourport.c b/drivers/serial/8250_fourport.c index e9b4d908ef42..6375d68b7913 100644 --- a/drivers/serial/8250_fourport.c +++ b/drivers/serial/8250_fourport.c | |||
@@ -35,7 +35,7 @@ static struct plat_serial8250_port fourport_data[] = { | |||
35 | 35 | ||
36 | static struct platform_device fourport_device = { | 36 | static struct platform_device fourport_device = { |
37 | .name = "serial8250", | 37 | .name = "serial8250", |
38 | .id = 1, | 38 | .id = PLAT8250_DEV_FOURPORT, |
39 | .dev = { | 39 | .dev = { |
40 | .platform_data = fourport_data, | 40 | .platform_data = fourport_data, |
41 | }, | 41 | }, |
diff --git a/drivers/serial/8250_hub6.c b/drivers/serial/8250_hub6.c index 77f396f84b4c..daf569cd3c8f 100644 --- a/drivers/serial/8250_hub6.c +++ b/drivers/serial/8250_hub6.c | |||
@@ -40,7 +40,7 @@ static struct plat_serial8250_port hub6_data[] = { | |||
40 | 40 | ||
41 | static struct platform_device hub6_device = { | 41 | static struct platform_device hub6_device = { |
42 | .name = "serial8250", | 42 | .name = "serial8250", |
43 | .id = 4, | 43 | .id = PLAT8250_DEV_HUB6, |
44 | .dev = { | 44 | .dev = { |
45 | .platform_data = hub6_data, | 45 | .platform_data = hub6_data, |
46 | }, | 46 | }, |
diff --git a/drivers/serial/8250_mca.c b/drivers/serial/8250_mca.c index f0c40d68b8c1..ac205256d5f3 100644 --- a/drivers/serial/8250_mca.c +++ b/drivers/serial/8250_mca.c | |||
@@ -44,7 +44,7 @@ static struct plat_serial8250_port mca_data[] = { | |||
44 | 44 | ||
45 | static struct platform_device mca_device = { | 45 | static struct platform_device mca_device = { |
46 | .name = "serial8250", | 46 | .name = "serial8250", |
47 | .id = 5, | 47 | .id = PLAT8250_DEV_MCA, |
48 | .dev = { | 48 | .dev = { |
49 | .platform_data = mca_data, | 49 | .platform_data = mca_data, |
50 | }, | 50 | }, |