regmap: regmap_raw_read return error on !bus->read
authorMarkus Pargmann <mpa@pengutronix.de>
Thu, 20 Aug 2015 09:12:35 +0000 (11:12 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 20 Aug 2015 18:29:38 +0000 (11:29 -0700)
Return -ENOTSUPP if map->bus->read is not implemented and we do not use
the cache. This code path would directly use bus->read would run into an
NULL pointer for the read function.

Signed-off-by: Markus Pargmann <mpa@pengutronix.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/base/regmap/regmap.c

Simple merge