]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
clk_k210.c: Clean up how we handle nop
authorTom Rini <trini@konsulko.com>
Thu, 26 Oct 2023 18:31:36 +0000 (14:31 -0400)
committerTom Rini <trini@konsulko.com>
Tue, 7 Nov 2023 19:49:40 +0000 (14:49 -0500)
Now that sandbox has <asm/barrier.h> and defines nop() there we should
include that in our driver for clarity and then remove our local nop()
from <k210/pll.h>.

Reviewed-by: Sean Anderson <seanga2@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>
drivers/clk/clk_k210.c
include/k210/pll.h

index c534cc07e09275f2eb96249d638ea2b5c3211b2c..b9469b93853ba2a8b2a82c5b6f41b24b5390d7c5 100644 (file)
@@ -16,6 +16,7 @@
 #include <dt-bindings/mfd/k210-sysctl.h>
 #include <k210/pll.h>
 #include <linux/bitfield.h>
+#include <asm/barrier.h>
 
 DECLARE_GLOBAL_DATA_PTR;
 
index fd16a89cb20313788b75609a61dcdd9f4608ecae..175c47f6f23313a09c6de44edb9aa008ca16160b 100644 (file)
@@ -16,9 +16,6 @@ struct k210_pll_config {
 #ifdef CONFIG_UNIT_TEST
 TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in,
                                     struct k210_pll_config *best);
-#ifndef nop
-#define nop()
-#endif
 
 #endif
 #endif /* K210_PLL_H */