]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit734f2bb1e13741b48d7b0ebb7d71a896f6c1763b
tree68b3606853eeb6d3f27dd233dcbf159a6a4a5a99
parent8beb891dad0b35b98eac6a6c93e11227a0ca2c51
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