diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/asm-powerpc/mediabay.h | 6 | ||||
-rw-r--r-- | include/linux/ide.h | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/include/asm-powerpc/mediabay.h b/include/asm-powerpc/mediabay.h index de83fe196309..df111c362a7f 100644 --- a/include/asm-powerpc/mediabay.h +++ b/include/asm-powerpc/mediabay.h | |||
@@ -22,10 +22,14 @@ int check_media_bay(struct device_node *which_bay, int what); | |||
22 | /* Number of bays in the machine or 0 */ | 22 | /* Number of bays in the machine or 0 */ |
23 | extern int media_bay_count; | 23 | extern int media_bay_count; |
24 | 24 | ||
25 | #ifdef CONFIG_BLK_DEV_IDE_PMAC | ||
26 | #include <linux/ide.h> | ||
27 | |||
25 | int check_media_bay_by_base(unsigned long base, int what); | 28 | int check_media_bay_by_base(unsigned long base, int what); |
26 | /* called by IDE PMAC host driver to register IDE controller for media bay */ | 29 | /* called by IDE PMAC host driver to register IDE controller for media bay */ |
27 | int media_bay_set_ide_infos(struct device_node *which_bay, unsigned long base, | 30 | int media_bay_set_ide_infos(struct device_node *which_bay, unsigned long base, |
28 | int irq, int index); | 31 | int irq, ide_hwif_t *hwif); |
32 | #endif | ||
29 | 33 | ||
30 | #endif /* __KERNEL__ */ | 34 | #endif /* __KERNEL__ */ |
31 | #endif /* _PPC_MEDIABAY_H */ | 35 | #endif /* _PPC_MEDIABAY_H */ |
diff --git a/include/linux/ide.h b/include/linux/ide.h index f9449ecd79d9..9aaad7e70593 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -189,10 +189,6 @@ struct hwif_s * ide_find_port(unsigned long); | |||
189 | void ide_init_port_data(struct hwif_s *, unsigned int); | 189 | void ide_init_port_data(struct hwif_s *, unsigned int); |
190 | void ide_init_port_hw(struct hwif_s *, hw_regs_t *); | 190 | void ide_init_port_hw(struct hwif_s *, hw_regs_t *); |
191 | 191 | ||
192 | struct ide_drive_s; | ||
193 | int ide_register_hw(hw_regs_t *, void (*)(struct ide_drive_s *), | ||
194 | struct hwif_s **); | ||
195 | |||
196 | static inline void ide_std_init_ports(hw_regs_t *hw, | 192 | static inline void ide_std_init_ports(hw_regs_t *hw, |
197 | unsigned long io_addr, | 193 | unsigned long io_addr, |
198 | unsigned long ctl_addr) | 194 | unsigned long ctl_addr) |
@@ -1204,6 +1200,8 @@ void ide_undecoded_slave(ide_drive_t *); | |||
1204 | 1200 | ||
1205 | int ide_device_add_all(u8 *idx, const struct ide_port_info *); | 1201 | int ide_device_add_all(u8 *idx, const struct ide_port_info *); |
1206 | int ide_device_add(u8 idx[4], const struct ide_port_info *); | 1202 | int ide_device_add(u8 idx[4], const struct ide_port_info *); |
1203 | void ide_port_unregister_devices(ide_hwif_t *); | ||
1204 | void ide_port_scan(ide_hwif_t *); | ||
1207 | 1205 | ||
1208 | static inline void *ide_get_hwifdata (ide_hwif_t * hwif) | 1206 | static inline void *ide_get_hwifdata (ide_hwif_t * hwif) |
1209 | { | 1207 | { |