]> git.baikalelectronics.ru Git - kernel.git/commit
fsl_pq_mdio: Clean up tbi address configuration
authorAndy Fleming <afleming@freescale.com>
Fri, 11 Nov 2011 05:10:39 +0000 (05:10 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 Nov 2011 05:26:11 +0000 (00:26 -0500)
commitfe3d0846208ec488033dc52079f7dabd408725fa
tree57f1bec991ce8e61f5745a198b83167f6d746673
parentb2c4cb4171aad830b966f8c4f940ae2ba02c8a0a
fsl_pq_mdio: Clean up tbi address configuration

The code for setting the address of the internal TBI PHY was
convoluted enough without a maze of ifdefs. Clean it up a bit
so we allow the logic to fail down to -ENODEV at the end of
the if/else ladder, rather than using ifdefs to repeat the same
failure code over and over.

Also, remove the support for the auto-configuration. I'm not aware of
anyone using it, and it ends up using the bus mutex before it's been
initialized.

Signed-off-by: Andy Fleming <afleming@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fsl_pq_mdio.c