mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-22 20:58:22 +00:00
clk_k210.c: Clean up how we handle nop
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>
This commit is contained in:
parent
eff0aa47b5
commit
d563bb5d16
2 changed files with 1 additions and 3 deletions
|
@ -16,6 +16,7 @@
|
||||||
#include <dt-bindings/mfd/k210-sysctl.h>
|
#include <dt-bindings/mfd/k210-sysctl.h>
|
||||||
#include <k210/pll.h>
|
#include <k210/pll.h>
|
||||||
#include <linux/bitfield.h>
|
#include <linux/bitfield.h>
|
||||||
|
#include <asm/barrier.h>
|
||||||
|
|
||||||
DECLARE_GLOBAL_DATA_PTR;
|
DECLARE_GLOBAL_DATA_PTR;
|
||||||
|
|
||||||
|
|
|
@ -16,9 +16,6 @@ struct k210_pll_config {
|
||||||
#ifdef CONFIG_UNIT_TEST
|
#ifdef CONFIG_UNIT_TEST
|
||||||
TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in,
|
TEST_STATIC int k210_pll_calc_config(u32 rate, u32 rate_in,
|
||||||
struct k210_pll_config *best);
|
struct k210_pll_config *best);
|
||||||
#ifndef nop
|
|
||||||
#define nop()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
#endif /* K210_PLL_H */
|
#endif /* K210_PLL_H */
|
||||||
|
|
Loading…
Add table
Reference in a new issue