diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-02 13:56:43 -0500 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-02-02 13:56:43 -0500 |
commit | eafd88a3b5d86ba2dd515d430b57a01349d0867b (patch) | |
tree | 6325ee98037bb046025100f3d05cc10154ec9225 /include | |
parent | 070ecb841c4f15817f4e2365785173eea56ab3e6 (diff) |
ide: factor out devices setup from ide_acpi_init()
* Factor out devices setup from ide_acpi_init() to
ide_acpi_port_init_devices().
* Call ide_acpi_port_init_devices() in ide_device_add_all().
While at it:
* Remove no longer needed 'drive' field from struct ide_acpi_drive_link.
There should be no functionality changes caused by this patch.
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ide.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/ide.h b/include/linux/ide.h index 9f195078ff99..e33e307d9410 100644 --- a/include/linux/ide.h +++ b/include/linux/ide.h | |||
@@ -1202,12 +1202,14 @@ extern int ide_acpi_exec_tfs(ide_drive_t *drive); | |||
1202 | extern void ide_acpi_get_timing(ide_hwif_t *hwif); | 1202 | extern void ide_acpi_get_timing(ide_hwif_t *hwif); |
1203 | extern void ide_acpi_push_timing(ide_hwif_t *hwif); | 1203 | extern void ide_acpi_push_timing(ide_hwif_t *hwif); |
1204 | extern void ide_acpi_init(ide_hwif_t *hwif); | 1204 | extern void ide_acpi_init(ide_hwif_t *hwif); |
1205 | void ide_acpi_port_init_devices(ide_hwif_t *); | ||
1205 | extern void ide_acpi_set_state(ide_hwif_t *hwif, int on); | 1206 | extern void ide_acpi_set_state(ide_hwif_t *hwif, int on); |
1206 | #else | 1207 | #else |
1207 | static inline int ide_acpi_exec_tfs(ide_drive_t *drive) { return 0; } | 1208 | static inline int ide_acpi_exec_tfs(ide_drive_t *drive) { return 0; } |
1208 | static inline void ide_acpi_get_timing(ide_hwif_t *hwif) { ; } | 1209 | static inline void ide_acpi_get_timing(ide_hwif_t *hwif) { ; } |
1209 | static inline void ide_acpi_push_timing(ide_hwif_t *hwif) { ; } | 1210 | static inline void ide_acpi_push_timing(ide_hwif_t *hwif) { ; } |
1210 | static inline void ide_acpi_init(ide_hwif_t *hwif) { ; } | 1211 | static inline void ide_acpi_init(ide_hwif_t *hwif) { ; } |
1212 | static inline void ide_acpi_port_init_devices(ide_hwif_t *hwif) { ; } | ||
1211 | static inline void ide_acpi_set_state(ide_hwif_t *hwif, int on) {} | 1213 | static inline void ide_acpi_set_state(ide_hwif_t *hwif, int on) {} |
1212 | #endif | 1214 | #endif |
1213 | 1215 | ||