diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:14:57 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2008-01-29 05:14:57 -0500 |
commit | 19388fb092d89e179575bd0b44f51b57e175edf5 (patch) | |
tree | d379d5657e85f026f57e1f193ab963b592a77711 /arch/mips/sni/pcit.c | |
parent | 0ab7aefc4d43a6dee26c891b41ef9c7a67d2379b (diff) |
[MIPS] Cleanup pcspeaker platform device registration.
Move registration into the actual platform code instead of making a
desparate attempt at sharing the hand full of likes of code in pcspeaker.c.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/sni/pcit.c')
-rw-r--r-- | arch/mips/sni/pcit.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/mips/sni/pcit.c b/arch/mips/sni/pcit.c index 416f397c768b..e5f12cf96e8e 100644 --- a/arch/mips/sni/pcit.c +++ b/arch/mips/sni/pcit.c | |||
@@ -76,6 +76,11 @@ static struct platform_device pcit_cmos_device = { | |||
76 | .resource = pcit_cmos_rsrc | 76 | .resource = pcit_cmos_rsrc |
77 | }; | 77 | }; |
78 | 78 | ||
79 | static struct platform_device pcit_pcspeaker_pdev = { | ||
80 | .name = "pcspkr", | ||
81 | .id = -1, | ||
82 | }; | ||
83 | |||
79 | static struct resource sni_io_resource = { | 84 | static struct resource sni_io_resource = { |
80 | .start = 0x00000000UL, | 85 | .start = 0x00000000UL, |
81 | .end = 0x03bfffffUL, | 86 | .end = 0x03bfffffUL, |
@@ -277,11 +282,13 @@ static int __init snirm_pcit_setup_devinit(void) | |||
277 | case SNI_BRD_PCI_TOWER: | 282 | case SNI_BRD_PCI_TOWER: |
278 | platform_device_register(&pcit_serial8250_device); | 283 | platform_device_register(&pcit_serial8250_device); |
279 | platform_device_register(&pcit_cmos_device); | 284 | platform_device_register(&pcit_cmos_device); |
285 | platform_device_register(&pcit_pcspeaker_pdev); | ||
280 | break; | 286 | break; |
281 | 287 | ||
282 | case SNI_BRD_PCI_TOWER_CPLUS: | 288 | case SNI_BRD_PCI_TOWER_CPLUS: |
283 | platform_device_register(&pcit_cplus_serial8250_device); | 289 | platform_device_register(&pcit_cplus_serial8250_device); |
284 | platform_device_register(&pcit_cmos_device); | 290 | platform_device_register(&pcit_cmos_device); |
291 | platform_device_register(&pcit_pcspeaker_pdev); | ||
285 | break; | 292 | break; |
286 | } | 293 | } |
287 | return 0; | 294 | return 0; |