Commit e28e5dc3 authored by Randy Dunlap's avatar Randy Dunlap Committed by Jeff Garzik

[PATCH] via-rhine: references __init code during resume

Fix __init section usage:
rhine_resume calls enable_mmio, so latter cannot be __devinit;
Error: ./drivers/net/via-rhine.o .text refers to 0000000000000925 R_X86_64_PC32
.init.text+0xfffffffffffffffc
Signed-off-by: default avatarRandy Dunlap <rddunlap@osdl.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 6b6946e9
...@@ -627,7 +627,7 @@ static void rhine_chip_reset(struct net_device *dev) ...@@ -627,7 +627,7 @@ static void rhine_chip_reset(struct net_device *dev)
} }
#ifdef USE_MMIO #ifdef USE_MMIO
static void __devinit enable_mmio(long pioaddr, u32 quirks) static void enable_mmio(long pioaddr, u32 quirks)
{ {
int n; int n;
if (quirks & rqRhineI) { if (quirks & rqRhineI) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment