> +static int lan78xx_get_regs_len(struct net_device *netdev)
> +{
> +     return (sizeof(lan78xx_regs) + PHY_REG_SIZE);

If there is no PHY attached, you probably should not include
PHY_REG_SIZE here.

     Andrew

Reply via email to