diff mbox

net: let KS8842 driver depend on HAS_IOMEM

Message ID 20090623073206.GB5955@osiris.boeblingen.de.ibm.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Heiko Carstens June 23, 2009, 7:32 a.m. UTC
From: Heiko Carstens <heiko.carstens@de.ibm.com>

Fixes this compile error on s390:

  CC      drivers/net/ks8842.o
drivers/net/ks8842.c: In function 'ks8842_select_bank':
drivers/net/ks8842.c:124: error: implicit declaration of function 'iowrite16'
drivers/net/ks8842.c: In function 'ks8842_write8':
drivers/net/ks8842.c:131: error: implicit declaration of function 'iowrite8'

Cc: Richard Rojfors <richard.rojfors.ext@mocean-labs.com>
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
---
 drivers/net/Kconfig |    1 +
 1 file changed, 1 insertion(+)

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

David Miller June 23, 2009, 11:19 a.m. UTC | #1
From: Heiko Carstens <heiko.carstens@de.ibm.com>
Date: Tue, 23 Jun 2009 09:32:18 +0200

> From: Heiko Carstens <heiko.carstens@de.ibm.com>
> 
> Fixes this compile error on s390:
> 
>   CC      drivers/net/ks8842.o
> drivers/net/ks8842.c: In function 'ks8842_select_bank':
> drivers/net/ks8842.c:124: error: implicit declaration of function 'iowrite16'
> drivers/net/ks8842.c: In function 'ks8842_write8':
> drivers/net/ks8842.c:131: error: implicit declaration of function 'iowrite8'
> 
> Cc: Richard Rojfors <richard.rojfors.ext@mocean-labs.com>
> Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

Index: linux-2.6/drivers/net/Kconfig
===================================================================
--- linux-2.6.orig/drivers/net/Kconfig
+++ linux-2.6/drivers/net/Kconfig
@@ -1725,6 +1725,7 @@  config TLAN
 
 config KS8842
 	tristate "Micrel KSZ8842"
+	depends on HAS_IOMEM
 	help
 	  This platform driver is for Micrel KSZ8842 chip.