]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - drivers/net/sfc/efx.c
sfc: Extend MTD driver for use with new NICs
[net-next-2.6.git] / drivers / net / sfc / efx.c
index 75dcaaedc3e8c693d76da2229af74923740ea0dd..4fe6d635ef3be027972bf7559c3684e16dbadc3d 100644 (file)
@@ -1977,6 +1977,9 @@ static int efx_init_struct(struct efx_nic *efx, struct efx_nic_type *type,
        spin_lock_init(&efx->biu_lock);
        mutex_init(&efx->mdio_lock);
        mutex_init(&efx->spi_lock);
+#ifdef CONFIG_SFC_MTD
+       INIT_LIST_HEAD(&efx->mtd_list);
+#endif
        INIT_WORK(&efx->reset_work, efx_reset_work);
        INIT_DELAYED_WORK(&efx->monitor_work, efx_monitor);
        efx->pci_dev = pci_dev;