mtdpart: Propagate _get/put_device()
authorRichard Weinberger <richard@nod.at>
Wed, 21 Sep 2016 09:43:56 +0000 (11:43 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 28 Sep 2016 20:00:45 +0000 (13:00 -0700)
commit5e149073ba427f99c5e751e558670d034a278f77
treed771a8c58a62f21ef378106b4cff4580a2e6f31b
parentf6d7c1b5598b6407c3f1da795dd54acf99c1990c
mtdpart: Propagate _get/put_device()

If the master device has callbacks for _get/put_device()
and this MTD has slaves a get_mtd_device() call on paritions
will never issue the registered callbacks.
Fix this by propagating _get/put_device() down.

Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/mtdpart.c