diff options
author | Dong Aisheng <aisheng.dong@nxp.com> | 2017-03-23 07:53:25 +0300 |
---|---|---|
committer | Shawn Guo <shawnguo@kernel.org> | 2017-03-24 08:43:21 +0300 |
commit | bd01f064af2a5de4293c5401e01de5a6f951f4a5 (patch) | |
tree | 51208ab2f04b3a199b7fb475ad85ccc635d54000 /drivers/soc | |
parent | ff693a3f2d2624016a59a0ae07cebcb7235a2426 (diff) | |
download | linux-bd01f064af2a5de4293c5401e01de5a6f951f4a5.tar.xz |
soc: imx: gpc: remove unnecessary readable_reg callback
It is not really necessary to provide the current .readable_reg
implementation as we know what we're doing in our driver
and the regmap core has already done the partial check for
available maximum regs.
Acked-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Diffstat (limited to 'drivers/soc')
-rw-r--r-- | drivers/soc/imx/gpc.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/drivers/soc/imx/gpc.c b/drivers/soc/imx/gpc.c index 3c612487e0fd..4294287e5f6c 100644 --- a/drivers/soc/imx/gpc.c +++ b/drivers/soc/imx/gpc.c @@ -284,18 +284,10 @@ static const struct of_device_id imx_gpc_dt_ids[] = { { } }; -static bool imx_gpc_readable_reg(struct device *dev, unsigned int reg) -{ - return (reg % 4 == 0) && (reg <= 0x2ac); -} - static const struct regmap_config imx_gpc_regmap_config = { .reg_bits = 32, .val_bits = 32, .reg_stride = 4, - - .readable_reg = imx_gpc_readable_reg, - .max_register = 0x2ac, }; |