Skip to content

Commit

Permalink
ide: Fix build break caused by "ide: remove ideprobe_init()"
Browse files Browse the repository at this point in the history
Fix build break of powerpc holly_defconfig:

In file included from arch/powerpc/platforms/embedded6xx/holly.c:24:
include/linux/ide.h:1206: error: 'CONFIG_IDE_MAX_HWIFS' undeclared here (not in a function)

There's no need to have a sized array in the prototype, might as well
turn it into a pointer.

It could probably be argued that large parts of the include file can be
covered under #ifdef CONFIG_IDE, but that's a larger undertaking.

Signed-off-by: Olof Johansson <olof@lixom.net>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Olof Johansson authored and Bartlomiej Zolnierkiewicz committed Jan 26, 2008
1 parent 151575e commit b0d5bc2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion drivers/ide/ide-probe.c
Original file line number Diff line number Diff line change
Expand Up @@ -1340,7 +1340,7 @@ static void hwif_register_devices(ide_hwif_t *hwif)
}
}

int ide_device_add_all(u8 idx[MAX_HWIFS])
int ide_device_add_all(u8 *idx)
{
ide_hwif_t *hwif;
int i, rc = 0;
Expand Down
2 changes: 1 addition & 1 deletion include/linux/ide.h
Original file line number Diff line number Diff line change
Expand Up @@ -1201,7 +1201,7 @@ void ide_unregister_region(struct gendisk *);

void ide_undecoded_slave(ide_drive_t *);

int ide_device_add_all(u8 idx[MAX_HWIFS]);
int ide_device_add_all(u8 *idx);
int ide_device_add(u8 idx[4]);

static inline void *ide_get_hwifdata (ide_hwif_t * hwif)
Expand Down

0 comments on commit b0d5bc2

Please sign in to comment.