mtd: bcm47xxsflash: use platform_(set|get)_drvdata
authorRafał Miłecki <rafal@milecki.pl>
Mon, 16 Jan 2017 16:28:18 +0000 (17:28 +0100)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 8 Feb 2017 19:19:43 +0000 (11:19 -0800)
commitbe5e5099183301fb7920f8f6b66bd3ac1f820a97
tree054da878e55c2e6f083f5ae59e4620ca12bd3f40
parent7a308bb3016f57e5be11a677d15b821536419d36
mtd: bcm47xxsflash: use platform_(set|get)_drvdata

We have generic place & helpers for storing platform driver data so
there is no reason for using custom priv pointer.

This allows cleaning up struct bcma_sflash from unneeded fields.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Acked-by: Kalle Valo <kvalo@codeaurora.org>
Acked-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/devices/bcm47xxsflash.c
include/linux/bcma/bcma_driver_chipcommon.h