]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit24838ef426f09380c66dd1db3b56235a8c9fe1d2
tree7bdd07dee0ec12378c283d55b68ef404766813c2
parent9f982bb1128a7f4215b5eb0c7b858c42c74a38d9
regmap: regmap_raw_read return error on !bus->read

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