mtd: physmap_of: use OF helpers for reading strings
authorRafał Miłecki <rafal@milecki.pl>
Thu, 30 Mar 2017 15:58:53 +0000 (17:58 +0200)
committerBrian Norris <computersforpeace@gmail.com>
Wed, 19 Apr 2017 22:26:26 +0000 (15:26 -0700)
commitda4b1caa49cbfac4e5be2c4b080b8d01b04358dd
treefca43ee8b4d291494c7a418df39d73e597f4a0a1
parentb3bb6d6a0fe1c893fbcaaac8bf97c49f6ec6684e
mtd: physmap_of: use OF helpers for reading strings

OF core code provides helpers for counting strings and reading them so
use them instead of doing this manually. This simplifies the code a bit.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Brian Norris <computersforpeace@gmail.com>
drivers/mtd/maps/physmap_of_core.c