net/fsl-pq-mdio: coalesce multiple memory allocations into one
authorTimur Tabi <timur@freescale.com>
Wed, 29 Aug 2012 08:08:02 +0000 (08:08 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 30 Aug 2012 17:29:32 +0000 (13:29 -0400)
commitdd3b8a32e66cc3274a27338335337a5b65611ea5
treea292e1557586df48f9c4832a086a846a50757171
parentafae5ad78b342f401c28b0bb1adb3cd494cb125a
net/fsl-pq-mdio: coalesce multiple memory allocations into one

Take advantage of the new mdiobus_alloc_size() function to combine three
different memory allocations into one.  This also simplies the error
handling.

Signed-off-by: Timur Tabi <timur@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fsl_pq_mdio.c