[patch] fix ppc64 zilog link error

Amos Waterland apw at us.ibm.com
Fri Mar 25 11:54:38 EST 2005


Simple fix so that this will not happen:

  LD      .tmp_vmlinux1
drivers/built-in.o(.text+0x2c640): In function `pmz_attach':
/home/apw/devel/percs-head/linux-2.6/drivers/serial/pmac_zilog.c:1560: undefined reference to `.macio_request_resources'
drivers/built-in.o(.text+0x2c6f0): In function `pmz_detach':
/home/apw/devel/percs-head/linux-2.6/drivers/serial/pmac_zilog.c:1583: undefined reference to `.macio_release_resources'
drivers/built-in.o(.init.text+0x6938): In function `init_pmz':
/home/apw/devel/percs-head/linux-2.6/drivers/serial/pmac_zilog.c:1916: undefined reference to `.macio_register_driver'
drivers/built-in.o(.exit.text+0x2c): In function `exit_pmz':
/home/apw/devel/percs-head/linux-2.6/drivers/serial/pmac_zilog.c:1924: undefined reference to `.macio_unregister_driver'

Signed-off-by: Amos Waterland <apw at us.ibm.com>

===== drivers/serial/Kconfig 1.50 vs edited =====
--- 1.50/drivers/serial/Kconfig	2005-01-31 01:33:45 -05:00
+++ edited/drivers/serial/Kconfig	2005-03-24 17:44:56 -05:00
@@ -615,7 +615,7 @@
 
 config SERIAL_PMACZILOG
 	tristate "PowerMac z85c30 ESCC support"
-	depends on PPC_OF
+	depends on PPC_OF && PPC_PMAC
 	select SERIAL_CORE
 	help
 	  This driver supports the Zilog z85C30 serial ports found on



More information about the Linuxppc64-dev mailing list