Skip to content

Commit d2b727c

Browse files
michalsimekyilunxu1984
authored andcommitted
fpga: xilinx-pr-decoupler: Use readl wrapper instead of pure readl
Driver has IO wrappers but xlnx_pr_decouple_read() is not used and readl is used instead which is just wrong. It is also generating sparse issue that xlnx_pr_decouple_read() is unused. Signed-off-by: Michal Simek <michal.simek@amd.com> Reviewed-by: Tom Rix <trix@redhat.com> Acked-by: Xu Yilun <yilun.xu@intel.com> Link: https://lore.kernel.org/r/0381e4e8061c2fee182a104768e84feff3a82d25.1679412800.git.michal.simek@amd.com Signed-off-by: Xu Yilun <yilun.xu@intel.com>
1 parent 83a458e commit d2b727c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/fpga/xilinx-pr-decoupler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static int xlnx_pr_decoupler_enable_show(struct fpga_bridge *bridge)
6969
if (err)
7070
return err;
7171

72-
status = readl(priv->io_base);
72+
status = xlnx_pr_decouple_read(priv, CTRL_OFFSET);
7373

7474
clk_disable(priv->clk);
7575

0 commit comments

Comments
 (0)