diff options
author | Fabian Frederick <fabf@skynet.be> | 2015-12-12 20:24:38 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-12-14 08:24:22 +0300 |
commit | cb4396edd84ed73081635fb933d19c1410fafaf4 (patch) | |
tree | 55a577d47ed477ad5d166c4072930543eabd982e /drivers/net/ethernet/hp | |
parent | cf8190e4c26c8ccf87d80793f8f1f7fe150cdf8c (diff) | |
download | linux-cb4396edd84ed73081635fb933d19c1410fafaf4.tar.xz |
drivers/net: fix eisa_driver probe section mismatch
Some eisa_driver structures used __init probe functions which generates
a warning and could crash if function is called after being deleted.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hp')
-rw-r--r-- | drivers/net/ethernet/hp/hp100.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hp/hp100.c b/drivers/net/ethernet/hp/hp100.c index ae6e30d39f0f..1d5c3e16d8f4 100644 --- a/drivers/net/ethernet/hp/hp100.c +++ b/drivers/net/ethernet/hp/hp100.c @@ -2843,7 +2843,7 @@ static void cleanup_dev(struct net_device *d) } #ifdef CONFIG_EISA -static int __init hp100_eisa_probe (struct device *gendev) +static int hp100_eisa_probe(struct device *gendev) { struct net_device *dev = alloc_etherdev(sizeof(struct hp100_private)); struct eisa_device *edev = to_eisa_device(gendev); |