Portability cleanup as required by Linus.
[linux-2.6/linux-mips.git] / drivers / block / genhd.c
bloba9bf5815733f6025b930467a61b1f5c1295c8099
1 /*
2 * Code extracted from
3 * linux/kernel/hd.c
5 * Copyright (C) 1991-1998 Linus Torvalds
7 * devfs support - jj, rgooch, 980122
9 * Moved partition checking code to fs/partitions* - Russell King
10 * (linux@arm.uk.linux.org)
13 #include <linux/config.h>
14 #include <linux/fs.h>
15 #include <linux/genhd.h>
16 #include <linux/kernel.h>
17 #include <linux/blk.h>
18 #include <linux/init.h>
20 extern int parport_init(void);
21 extern int chr_dev_init(void);
22 extern int blk_dev_init(void);
23 #ifdef CONFIG_BLK_DEV_DAC960
24 extern void DAC960_Initialize(void);
25 #endif
26 extern int scsi_dev_init(void);
27 extern int net_dev_init(void);
28 extern void console_map_init(void);
29 extern int soc_probe(void);
30 extern int atmdev_init(void);
31 extern int i2o_init(void);
32 extern int cpqarray_init(void);
33 extern void ieee1394_init(void);
35 void __init device_init(void)
37 #ifdef CONFIG_PARPORT
38 parport_init();
39 #endif
40 chr_dev_init();
41 blk_dev_init();
42 sti();
43 #ifdef CONFIG_I2O
44 i2o_init();
45 #endif
46 #ifdef CONFIG_BLK_DEV_DAC960
47 DAC960_Initialize();
48 #endif
49 #ifdef CONFIG_FC4_SOC
50 /* This has to be done before scsi_dev_init */
51 soc_probe();
52 #endif
53 #ifdef CONFIG_SCSI
54 scsi_dev_init();
55 #endif
56 #ifdef CONFIG_IEEE1394
57 ieee1394_init();
58 #endif
59 #ifdef CONFIG_BLK_CPQ_DA
60 cpqarray_init();
61 #endif
62 #ifdef CONFIG_NET
63 net_dev_init();
64 #endif
65 #ifdef CONFIG_ATM
66 (void) atmdev_init();
67 #endif
68 #ifdef CONFIG_VT
69 console_map_init();
70 #endif