Skip to content

Commit 63c1ce5

Browse files
committed
parisc: ccio: Convert CCIO driver to use arch_initcall()
Signed-off-by: Helge Deller <[email protected]>
1 parent 5f4f870 commit 63c1ce5

File tree

3 files changed

+3
-22
lines changed

3 files changed

+3
-22
lines changed

arch/parisc/include/asm/processor.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,6 @@ extern int show_cpuinfo (struct seq_file *m, void *v);
315315
/* driver code in driver/parisc */
316316
extern void gsc_init(void);
317317
extern void processor_init(void);
318-
extern void ccio_init(void);
319318
extern void iosapic_init(void);
320319
extern void lba_init(void);
321320
extern void sba_init(void);

arch/parisc/kernel/setup.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -290,16 +290,6 @@ static int __init parisc_init(void)
290290
lba_init();
291291
#endif
292292

293-
/* CCIO before any potential subdevices */
294-
#if defined(CONFIG_IOMMU_CCIO)
295-
ccio_init();
296-
#endif
297-
298-
/*
299-
* Need to register Asp & Wax before the EISA adapters for the IRQ
300-
* regions. EISA must come before PCI to be sure it gets IRQ region
301-
* 0.
302-
*/
303293
#if defined(CONFIG_GSC_LASI) || defined(CONFIG_GSC_WAX)
304294
gsc_init();
305295
#endif

drivers/parisc/ccio-dma.c

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,10 @@
88
** (c) Copyright 2000 Ryan Bradetich
99
** (c) Copyright 2000 Hewlett-Packard Company
1010
**
11-
**
12-
**
1311
** "Real Mode" operation refers to U2/Uturn chip operation.
1412
** U2/Uturn were designed to perform coherency checks w/o using
1513
** the I/O MMU - basically what x86 does.
1614
**
17-
** Philipp Rumpf has a "Real Mode" driver for PCX-W machines at:
18-
** CVSROOT=:pserver:[email protected]:/cvsroot/linux-parisc
19-
** cvs -z3 co linux/arch/parisc/kernel/dma-rm.c
20-
**
21-
** I've rewritten his code to work under TPG's tree. See ccio-rm-dma.c.
22-
**
2315
** Drawbacks of using Real Mode are:
2416
** o outbound DMA is slower - U2 won't prefetch data (GSC+ XQL signal).
2517
** o Inbound DMA less efficient - U2 can't use DMA_FAST attribute.
@@ -1582,8 +1574,8 @@ static int __init ccio_probe(struct parisc_device *dev)
15821574
*
15831575
* Register this driver.
15841576
*/
1585-
void __init ccio_init(void)
1577+
static int __init ccio_init(void)
15861578
{
1587-
register_parisc_driver(&ccio_driver);
1579+
return register_parisc_driver(&ccio_driver);
15881580
}
1589-
1581+
arch_initcall(ccio_init);

0 commit comments

Comments
 (0)