at86rf230: copy pdata to driver allocated space
authorAlexander Aring <alex.aring@gmail.com>
Fri, 27 Feb 2015 08:58:25 +0000 (09:58 +0100)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 27 Feb 2015 17:42:43 +0000 (18:42 +0100)
commitaaa1c4d226e4cd730075d3dac99a6d599a0190c7
treed6b2c8e76cecd6fc428f90b9cae44853a4b55fe7
parent9391976a4da0d2a30abdb8d2704cfc7bf4bf9aab
at86rf230: copy pdata to driver allocated space

This patch copies the platform data in driver allocated space at first.
With this change we ensure that we access the allocated platform data as
readonly space.

Signed-off-by: Alexander Aring <alex.aring@gmail.com>
Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/net/ieee802154/at86rf230.c