/* Returns 0 on success on < 0 on error.  */
int phy_config_interrupt(struct phy_device *phydev, u32 interrupts)
/* Returns 0 on success on < 0 on error.  */
int phy_config_interrupt(struct phy_device *phydev, u32 interrupts)
{
	int err = 0;
	phydev->interrupts = interrupts;
	if (phydev->drv->config_intr)
		err = phydev->drv->config_intr(phydev);
	return err;
}