]> Git Repo - u-boot.git/blobdiff - drivers/timer/timer-uclass.c
dtoc: Tidy up more Python style in dtb_platdata
[u-boot.git] / drivers / timer / timer-uclass.c
index e9802c8b43e99ed3b1005bfb7e2e137e60393bc4..62d0e860e80c527aa9d982fe3cb44be1c4bf7cef 100644 (file)
@@ -4,14 +4,15 @@
  */
 
 #include <common.h>
+#include <clk.h>
 #include <cpu.h>
 #include <dm.h>
-#include <init.h>
 #include <dm/lists.h>
+#include <dm/device_compat.h>
 #include <dm/device-internal.h>
 #include <dm/root.h>
-#include <clk.h>
 #include <errno.h>
+#include <init.h>
 #include <timer.h>
 #include <linux/err.h>
 
@@ -33,7 +34,8 @@ int notrace timer_get_count(struct udevice *dev, u64 *count)
        if (!ops->get_count)
                return -ENOSYS;
 
-       return ops->get_count(dev, count);
+       *count = ops->get_count(dev);
+       return 0;
 }
 
 unsigned long notrace timer_get_rate(struct udevice *dev)
This page took 0.02546 seconds and 4 git commands to generate.