return -ENODEV;
}
-#ifdef CONFIG_NET_FC
-static int fcif_probe(struct net_device *dev)
-{
- if (dev->base_addr == -1)
- return 1;
-
- if (1
-#ifdef CONFIG_IPHASE5526
- && iph5526_probe(dev)
-#endif
- && 1 ) {
- return 1; /* -ENODEV or -EAGAIN would be more accurate. */
- }
- return 0;
-}
-#endif /* CONFIG_NET_FC */
-
-
#ifdef CONFIG_ETHERTAP
static struct net_device tap0_dev = {
.name = "tap0",
#endif
-#ifdef CONFIG_NET_FC
-static struct net_device fc1_dev = {
- .name = "fc1",
- .next = NEXT_DEV,
- .init = fcif_probe
-};
-static struct net_device fc0_dev = {
- .name = "fc0",
- .next = &fc1_dev,
- .init = fcif_probe
-};
-#undef NEXT_DEV
-#define NEXT_DEV (&fc0_dev)
-#endif
-
-
#ifdef CONFIG_SBNI
static struct net_device sbni7_dev = {
.name = "sbni7",
static int __init iph5526_probe_pci(struct net_device *dev)
{
-#ifdef MODULE
struct fc_info *fi = (struct fc_info *)dev->priv;
-#else
- struct fc_info *fi = fc[count];
- static int count;
- int err;
-
- if (!fi)
- return -ENODEV;
-
- fc_setup(dev);
- count++;
-#endif
fi->dev = dev;
dev->base_addr = fi->base_addr;
dev->irq = fi->irq;
return buf;
}
-#ifdef MODULE
-
#define NAMELEN 8 /* # of chars for storing dev->name */
static struct net_device *dev_fc[MAX_FC_CARDS];
static int scsi_registered;
-int init_module(void)
+static int __init iph5526_init(void)
{
int i = 0;
return 0;
}
-void cleanup_module(void)
+static void __exit iph5526_exit(void)
{
int i = 0;
while(fc[i] != NULL) {
if (scsi_registered == TRUE)
scsi_unregister_host(&driver_template);
}
-#endif /* MODULE */
+
+module_init(iph5526_init);
+module_exit(iph5526_exit);
void clean_up_memory(struct fc_info *fi)
{