diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2009-04-21 05:04:37 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2009-04-22 00:56:35 -0400 |
commit | 6329db8bd60fbc0832f30c350b0181b8d865573e (patch) | |
tree | db9213fb51024f2f2a64b94f93ba8a8f035fc085 /drivers/macintosh/mediabay.c | |
parent | 2d6b3de2374dd8c9f5ab23d57c7bbcda08553356 (diff) |
powerpc: Fix modular build of ide-pmac when mediabay is built in
Now that the powermac IDE host driver can be modular, we need to
export check_media_bay_by_base() and media_bay_set_ide_infos()
from drivers/macintosh/mediabay.c for it.
This fixes the following build error:
> CC [M] drivers/ide/pmac.o
> drivers/ide/pmac.c: In function ‘pmac_ide_init_dev’:
> drivers/ide/pmac.c:955: error: implicit declaration of function
> ‘check_media_bay_by_base’
> drivers/ide/pmac.c: In function ‘pmac_ide_setup_device’:
> drivers/ide/pmac.c:1090: error: implicit declaration of function
> ‘media_bay_set_ide_infos’
> make[2]: *** [drivers/ide/pmac.o] Error 1
> make[1]: *** [drivers/ide] Error 2
> make: *** [drivers] Error 2
Reported-by: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh/mediabay.c')
-rw-r--r-- | drivers/macintosh/mediabay.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/macintosh/mediabay.c b/drivers/macintosh/mediabay.c index d7e46d345d9e..cf02188a90a6 100644 --- a/drivers/macintosh/mediabay.c +++ b/drivers/macintosh/mediabay.c | |||
@@ -447,6 +447,7 @@ int check_media_bay_by_base(unsigned long base, int what) | |||
447 | 447 | ||
448 | return -ENODEV; | 448 | return -ENODEV; |
449 | } | 449 | } |
450 | EXPORT_SYMBOL_GPL(check_media_bay_by_base); | ||
450 | 451 | ||
451 | int media_bay_set_ide_infos(struct device_node* which_bay, unsigned long base, | 452 | int media_bay_set_ide_infos(struct device_node* which_bay, unsigned long base, |
452 | int irq, ide_hwif_t *hwif) | 453 | int irq, ide_hwif_t *hwif) |
@@ -486,6 +487,7 @@ int media_bay_set_ide_infos(struct device_node* which_bay, unsigned long base, | |||
486 | 487 | ||
487 | return -ENODEV; | 488 | return -ENODEV; |
488 | } | 489 | } |
490 | EXPORT_SYMBOL_GPL(media_bay_set_ide_infos); | ||
489 | #endif /* CONFIG_BLK_DEV_IDE_PMAC */ | 491 | #endif /* CONFIG_BLK_DEV_IDE_PMAC */ |
490 | 492 | ||
491 | static void media_bay_step(int i) | 493 | static void media_bay_step(int i) |