diff options
author | Michael Chan <mchan@broadcom.com> | 2009-06-14 02:43:02 +0200 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2009-06-21 18:00:33 +0200 |
commit | e2ee3616bc334ab51e68aad6905761ca97f35559 (patch) | |
tree | 51b236991cb89d3f7bc6ab6841c5c3bf69d5bdfc /drivers/net/cnic.c | |
parent | Revert "[SCSI] cnic: fix error: implicit declaration of function ‘__symbol_... (diff) | |
download | linux-e2ee3616bc334ab51e68aad6905761ca97f35559.tar.xz linux-e2ee3616bc334ab51e68aad6905761ca97f35559.zip |
cnic: Fix __symbol_get() build error.
Ingo molnar <mingo@elte.hu> reported the error
drivers/net/cnic.c:2520: error: implicit declaration of function ‘__symbol_get’
when CONFIG_MODULES is not defined. Fix by using symbol_get() instead.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/net/cnic.c')
-rw-r--r-- | drivers/net/cnic.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/cnic.c b/drivers/net/cnic.c index a9e2fd35bb41..4d1515f45ba2 100644 --- a/drivers/net/cnic.c +++ b/drivers/net/cnic.c @@ -2519,9 +2519,9 @@ static struct cnic_dev *init_bnx2_cnic(struct net_device *dev) struct cnic_dev *cdev; struct cnic_local *cp; struct cnic_eth_dev *ethdev = NULL; - struct cnic_eth_dev *(*probe)(void *) = NULL; + struct cnic_eth_dev *(*probe)(struct net_device *) = NULL; - probe = __symbol_get("bnx2_cnic_probe"); + probe = symbol_get(bnx2_cnic_probe); if (probe) { ethdev = (*probe)(dev); symbol_put_addr(probe); |