Commit 648a0a7d authored by Sudip Mukherjee's avatar Sudip Mukherjee Committed by Martin K. Petersen

scsi: sim710: fix build warning

We are getting build warning about:
 "Section mismatch in reference from the variable sim710_eisa_driver to
 the function .init.text:sim710_eisa_probe()
 The variable sim710_eisa_driver references the function __init
 sim710_eisa_probe()"

sim710_eisa_probe() was having __init but that was being referenced from
sim710_eisa_driver.
Signed-off-by: default avatarSudip Mukherjee <sudip@vectorindia.org>
Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 0c88740d
...@@ -176,8 +176,7 @@ static struct eisa_device_id sim710_eisa_ids[] = { ...@@ -176,8 +176,7 @@ static struct eisa_device_id sim710_eisa_ids[] = {
}; };
MODULE_DEVICE_TABLE(eisa, sim710_eisa_ids); MODULE_DEVICE_TABLE(eisa, sim710_eisa_ids);
static __init int static int sim710_eisa_probe(struct device *dev)
sim710_eisa_probe(struct device *dev)
{ {
struct eisa_device *edev = to_eisa_device(dev); struct eisa_device *edev = to_eisa_device(dev);
unsigned long io_addr = edev->base_addr; unsigned long io_addr = edev->base_addr;
......
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