mtd: devices: simplify getting .drvdata
authorWolfram Sang <wsa+renesas@sang-engineering.com>
Thu, 19 Apr 2018 14:05:59 +0000 (16:05 +0200)
committerBoris Brezillon <boris.brezillon@bootlin.com>
Sun, 22 Apr 2018 17:10:53 +0000 (19:10 +0200)
commit0e210b542cdb34637b849e181178c2d27fcf0d28
tree8e349a7ff721cee87fa6de8ef76f43359181744c
parent7db782bc180efabf6d6628d428be163dc19513ad
mtd: devices: simplify getting .drvdata

We should get drvdata from struct device directly. Going via
platform_device is an unneeded step back and forth.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
Acked-by: Robert Jarzmik <robert.jarzmik@free.fr>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
drivers/mtd/devices/docg3.c