diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-14 13:35:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2023-01-10 15:43:47 +0100 |
commit | c0afc799fb9a19a11f651596fe23b4b755593887 (patch) | |
tree | 9c27f1533193d31757744b22b2af9186d23e67ed /arch/arm/mach-clps711x | |
parent | e70b9d7a74698f1374244b2251216428db920aed (diff) | |
download | barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.gz barebox-c0afc799fb9a19a11f651596fe23b4b755593887.tar.xz |
Rename struct device_d to device
The '_d' suffix was originally introduced in case we want to import
Linux struct device as a separate struct into barebox. Over time it
became clear that this won't happen, instead barebox struct device_d
is basically the same as Linux struct device. Rename the struct name
accordingly to make porting Linux code easier.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Reviewed-by: Marco Felsch <m.felsch@pengutronix.de>
Link: https://lore.barebox.org/20221214123512.189688-3-s.hauer@pengutronix.de
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-clps711x')
-rw-r--r-- | arch/arm/mach-clps711x/clock.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-clps711x/common.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-clps711x/clock.c b/arch/arm/mach-clps711x/clock.c index 573867e415..7ad43842f6 100644 --- a/arch/arm/mach-clps711x/clock.c +++ b/arch/arm/mach-clps711x/clock.c @@ -23,7 +23,7 @@ static const struct clk_div_table tdiv_tbl[] = { { } }; -static int clps711x_clk_probe(struct device_d *dev) +static int clps711x_clk_probe(struct device *dev) { unsigned int f_cpu, f_bus, f_uart, f_timer_ref, pll; u32 tmp; diff --git a/arch/arm/mach-clps711x/common.c b/arch/arm/mach-clps711x/common.c index dcb97ad236..a185110213 100644 --- a/arch/arm/mach-clps711x/common.c +++ b/arch/arm/mach-clps711x/common.c @@ -110,7 +110,7 @@ static int clps711x_bus_fixup(struct device_node *root, void *context) return 0; } -static int clps711x_bus_probe(struct device_d *dev) +static int clps711x_bus_probe(struct device *dev) { u32 mcfg; |