regmap: Fix regmap_can_raw_write check
authorMarkus Pargmann <mpa@pengutronix.de>
Wed, 12 Aug 2015 10:12:33 +0000 (12:12 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 14 Aug 2015 18:07:39 +0000 (19:07 +0100)
commit07ea400e1b26726f21b2c2299d187d6eb7eb4324
tree35313c14111c2f8d7bb710684646803c6547b07c
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590
regmap: Fix regmap_can_raw_write check

This function is missing a check if map->bus->write is implemented. If
it is not implemented arbitrary raw writes are not possible.

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