diff -r 480bb0e62d4c drivers/net/sfc/tenxpress.c --- a/drivers/net/sfc/tenxpress.c +++ b/drivers/net/sfc/tenxpress.c @@ -391,9 +391,11 @@ static int tenxpress_phy_init(struct efx if (rc < 0) goto fail; +#ifdef CONFIG_SFC_DEBUGFS rc = tenxpress_debugfs_init(efx); if (rc < 0) goto fail; +#endif schedule_timeout_uninterruptible(HZ / 5); /* 200ms */ diff -r 480bb0e62d4c drivers/net/sfc/txc43128_phy.c --- a/drivers/net/sfc/txc43128_phy.c +++ b/drivers/net/sfc/txc43128_phy.c @@ -644,8 +644,8 @@ static void txc43128_phy_fini(struct efx * don't use LASI interrupts. Also update the BER counters and poll the lm87 */ static int txc43128_phy_check_hw(struct efx_nic *efx) { + struct txc43128_data *data = efx->phy_data; #ifdef CONFIG_SFC_DEBUGFS - struct txc43128_data *data = efx->phy_data; int phy = efx->mii.phy_id; int timer, count, i, mmd; #endif