diff options
author | Grygorii Strashko <grygorii.strashko@ti.com> | 2016-12-06 18:00:33 -0600 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-12-07 11:13:45 -0500 |
commit | 391fd6caf5cfc74a15a79c1237de0a2d84dfd398 (patch) | |
tree | 67c93521f53e3f57d71ba96c1921617f466e81fc /drivers/net/ethernet/ti/cpts.c | |
parent | d3243aef98d25f5a303e8b57099a2bc9181b865e (diff) | |
download | linux-391fd6caf5cfc74a15a79c1237de0a2d84dfd398.tar.bz2 |
net: ethernet: ti: cpts: switch to readl/writel_relaxed()
Switch to readl/writel_relaxed() APIs, because this is recommended
API and the CPTS IP is reused on Keystone 2 SoCs
where LE/BE modes are supported.
Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com>
Acked-by: Richard Cochran <richardcochran@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ti/cpts.c')
-rw-r--r-- | drivers/net/ethernet/ti/cpts.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/ti/cpts.c b/drivers/net/ethernet/ti/cpts.c index 85a55b4ff8c0..a42c44910af1 100644 --- a/drivers/net/ethernet/ti/cpts.c +++ b/drivers/net/ethernet/ti/cpts.c @@ -33,8 +33,8 @@ #ifdef CONFIG_TI_CPTS -#define cpts_read32(c, r) __raw_readl(&c->reg->r) -#define cpts_write32(c, v, r) __raw_writel(v, &c->reg->r) +#define cpts_read32(c, r) readl_relaxed(&c->reg->r) +#define cpts_write32(c, v, r) writel_relaxed(v, &c->reg->r) static int event_expired(struct cpts_event *event) { |