spmi: pmic-arb: remove the read/write access checks
authorKiran Gunda <kgunda@codeaurora.org>
Fri, 28 Jul 2017 07:10:36 +0000 (12:40 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 11:51:19 +0000 (13:51 +0200)
commitb319b5922db204a328e02797a50a3898576bf1fc
tree9b65849727e3932c49806b2d208cd9fb1b7ae893
parentb8d01b7fbaa3b9d5887ec6c6fea36fb57bbc4d6b
spmi: pmic-arb: remove the read/write access checks

The access mode checks for peripheral ownership for read/write
permissions should not be required. Every peripheral enabled for
this master is expected to have a read/write permissions. If there
is any such invalid access due to wrong configuration in boot loader
or device tree files, then it should be fixed in those locations.
Hence, remove the access mode checks from the driver.

Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/spmi/spmi-pmic-arb.c