powerpc: Fix modular build of ide-pmac when mediabay is built in
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Tue, 21 Apr 2009 09:04:37 +0000 (09:04 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 22 Apr 2009 04:56:35 +0000 (14:56 +1000)
commit6329db8bd60fbc0832f30c350b0181b8d865573e
treedb9213fb51024f2f2a64b94f93ba8a8f035fc085
parent2d6b3de2374dd8c9f5ab23d57c7bbcda08553356
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>
drivers/macintosh/mediabay.c