Skip to content

Commit fc782e4

Browse files
digetxbrgl
authored andcommitted
gpio: tegra: Use generic readl_relaxed/writel_relaxed accessors
There is no point in using old-style raw accessors, the generic accessors do the same thing and also take into account CPU endianness. Tegra SoCs do not support big-endian mode in the upstream kernel, but let's switch away from the outdated things anyway, just to keep code up-to-date. Signed-off-by: Dmitry Osipenko <[email protected]> Reviewed-by: Thierry Reding <[email protected]> Tested-by: Thierry Reding <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 373894f commit fc782e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/gpio/gpio-tegra.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,12 @@ struct tegra_gpio_info {
9696
static inline void tegra_gpio_writel(struct tegra_gpio_info *tgi,
9797
u32 val, u32 reg)
9898
{
99-
__raw_writel(val, tgi->regs + reg);
99+
writel_relaxed(val, tgi->regs + reg);
100100
}
101101

102102
static inline u32 tegra_gpio_readl(struct tegra_gpio_info *tgi, u32 reg)
103103
{
104-
return __raw_readl(tgi->regs + reg);
104+
return readl_relaxed(tgi->regs + reg);
105105
}
106106

107107
static unsigned int tegra_gpio_compose(unsigned int bank, unsigned int port,

0 commit comments

Comments
 (0)