Merge tag 'v2021.01-rc5' into next
[platform/kernel/u-boot.git] / drivers / watchdog / sbsa_gwdt.c
index 7538215..b7cb199 100644 (file)
@@ -61,7 +61,7 @@ static int sbsa_gwdt_start(struct udevice *dev, u64 timeout, ulong flags)
         * to half value of timeout.
         */
        clk = get_tbclk();
-       writel(clk / 2 * timeout,
+       writel(clk / (2 * 1000) * timeout,
               priv->reg_control + SBSA_GWDT_WOR);
 
        /* writing WCS will cause an explicit watchdog refresh */
@@ -88,7 +88,7 @@ static int sbsa_gwdt_expire_now(struct udevice *dev, ulong flags)
 
 static int sbsa_gwdt_probe(struct udevice *dev)
 {
-       debug("%s: Probing wdt%u (sbsa-gwdt)\n", __func__, dev->seq);
+       debug("%s: Probing wdt%u (sbsa-gwdt)\n", __func__, dev_seq(dev));
 
        return 0;
 }