summaryrefslogtreecommitdiff
path: root/drivers/infiniband/hw/mthca/mthca_mad.c
diff options
context:
space:
mode:
authorMarkus Pargmann <mpa@pengutronix.de>2015-08-20 11:12:35 +0200
committerMark Brown <broonie@kernel.org>2015-08-20 11:29:38 -0700
commit9a16ea900fadc88714e3a32214dea8e968ccd889 (patch)
tree7bdd07dee0ec12378c283d55b68ef404766813c2 /drivers/infiniband/hw/mthca/mthca_mad.c
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
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>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_mad.c')
0 files changed, 0 insertions, 0 deletions