mrf24j40: use ieee802154_alloc_hw for private data
authorAlexander Aring <alex.aring@gmail.com>
Mon, 21 Sep 2015 09:24:23 +0000 (11:24 +0200)
committerMarcel Holtmann <marcel@holtmann.org>
Tue, 22 Sep 2015 09:51:20 +0000 (11:51 +0200)
commitb2cfdf3c6720b9b77758ef229401f28f48c3372b
tree68b3606853eeb6d3f27dd233dcbf159a6a4a5a99
parentc9f883f6fe66ff08ea968494709f4c0b28bc619a
mrf24j40: use ieee802154_alloc_hw for private data

This patch removes the own private dataroom allocation by calling
devm_kzalloc for devrec and assign this pointer to "devrec->hw->priv".
Instead we using like all other drivers ieee802154_alloc_hw and give the
size for the private driver dataroom at the first argument.

Reviewed-by: Stefan Schmidt <stefan@osg.samsung.com>
Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/mrf24j40.c