diff options
| author | Rafał Miłecki <rafal@milecki.pl> | 2017-01-16 11:28:18 -0500 |
|---|---|---|
| committer | Brian Norris <computersforpeace@gmail.com> | 2017-02-08 14:19:43 -0500 |
| commit | be5e5099183301fb7920f8f6b66bd3ac1f820a97 (patch) | |
| tree | 054da878e55c2e6f083f5ae59e4620ca12bd3f40 /include/linux/bcma | |
| parent | 7a308bb3016f57e5be11a677d15b821536419d36 (diff) | |
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>
Diffstat (limited to 'include/linux/bcma')
| -rw-r--r-- | include/linux/bcma/bcma_driver_chipcommon.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/linux/bcma/bcma_driver_chipcommon.h b/include/linux/bcma/bcma_driver_chipcommon.h index b20e3d56253f..2f1c690a3e66 100644 --- a/include/linux/bcma/bcma_driver_chipcommon.h +++ b/include/linux/bcma/bcma_driver_chipcommon.h | |||
| @@ -593,9 +593,6 @@ struct bcma_sflash { | |||
| 593 | u32 blocksize; | 593 | u32 blocksize; |
| 594 | u16 numblocks; | 594 | u16 numblocks; |
| 595 | u32 size; | 595 | u32 size; |
| 596 | |||
| 597 | struct mtd_info *mtd; | ||
| 598 | void *priv; | ||
| 599 | }; | 596 | }; |
| 600 | #endif | 597 | #endif |
| 601 | 598 | ||
