Skip to content
Snippets Groups Projects
Commit 811c7bde authored by Michal Simek's avatar Michal Simek
Browse files

watchdog: cadence: Remove useless ioremap


There is no need to call ioremap. Also reg pointer is completely unused
in the driver.

Signed-off-by: default avatarMichal Simek <michal.simek@xilinx.com>
parent 6afedb90
No related branches found
No related tags found
No related merge requests found
......@@ -25,7 +25,6 @@ struct cdns_regs {
struct cdns_wdt_priv {
bool rst;
u32 timeout;
void __iomem *reg;
struct cdns_regs *regs;
};
......@@ -224,12 +223,8 @@ static int cdns_wdt_stop(struct udevice *dev)
*/
static int cdns_wdt_probe(struct udevice *dev)
{
struct cdns_wdt_priv *priv = dev_get_priv(dev);
debug("%s: Probing wdt%u\n", __func__, dev->seq);
priv->reg = ioremap((u32)priv->regs, sizeof(struct cdns_regs));
cdns_wdt_stop(dev);
return 0;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment