mdio: Move allocation of interrupts into core
Have mdio_alloc() create the array of interrupt numbers, and initialize it to POLLING. This is what most MDIO drivers want, so allowing code to be removed from the drivers. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
35d2aeac98
commit
e7f4dc3536
@@ -337,7 +337,6 @@ struct temac_local {
|
||||
|
||||
/* MDIO bus data */
|
||||
struct mii_bus *mii_bus; /* MII bus reference */
|
||||
int mdio_irqs[PHY_MAX_ADDR]; /* IRQs table for MDIO bus */
|
||||
|
||||
/* IO registers, dma functions and IRQs */
|
||||
void __iomem *regs;
|
||||
|
Reference in New Issue
Block a user