]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaa8e06102852d06d77a19cffc8ee0a1a68325425
treea292e1557586df48f9c4832a086a846a50757171
parent7975e2a3bdc23b4ba5caef14ed8f4d3f70fb3b55
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