From d699fbed6d0fa1ba3e2d27957ababf1d8db1f180 Mon Sep 17 00:00:00 2001 From: "David S. Miller" <davem@nuts.ninka.net> Date: Thu, 22 May 2003 10:48:24 -0700 Subject: [PATCH] [IRDA]: Protect IDA dma stuff with CONFIG_ISA. --- net/irda/irda_device.c | 2 ++ net/irda/irsyms.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/net/irda/irda_device.c b/net/irda/irda_device.c index c368b7fc72fc..743abb29c164 100644 --- a/net/irda/irda_device.c +++ b/net/irda/irda_device.c @@ -532,6 +532,7 @@ int irda_device_set_mode(struct net_device* dev, int mode) return ret; } +#ifdef CONFIG_ISA /* * Function setup_dma (idev, buffer, count, mode) * @@ -553,3 +554,4 @@ void setup_dma(int channel, char *buffer, int count, int mode) release_dma_lock(flags); } +#endif diff --git a/net/irda/irsyms.c b/net/irda/irsyms.c index ec7363528e14..be6ea07eafce 100644 --- a/net/irda/irsyms.c +++ b/net/irda/irsyms.c @@ -167,7 +167,9 @@ EXPORT_SYMBOL(async_unwrap_char); EXPORT_SYMBOL(irda_calc_crc16); EXPORT_SYMBOL(irda_crc16_table); EXPORT_SYMBOL(irda_start_timer); +#ifdef CONFIG_ISA EXPORT_SYMBOL(setup_dma); +#endif EXPORT_SYMBOL(infrared_mode); #ifdef CONFIG_IRTTY -- 2.30.9