Skip to content

Commit 35e834e

Browse files
committed
i.MX SoC changes for 6.12: - One cleanup from Fabio Estevam to remove Ethernet refclock setting from i.MX6SX machine code - One change from Nathan Chancellor that annotates imx7d_enet_init() as __init to clears up a section mismatch seen with the recent LLVM * tag 'imx-soc-6.12' of https://git.kernel.org/pub/scm/linux/kernel/git/shawnguo/linux: ARM: imx: Annotate imx7d_enet_init() as __init ARM: mach-imx: imx6sx: Remove Ethernet refclock setting Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]>
2 parents 350d0f0 + 1ec2362 commit 35e834e

File tree

2 files changed

+1
-23
lines changed

2 files changed

+1
-23
lines changed

arch/arm/mach-imx/mach-imx6sx.c

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -7,37 +7,15 @@
77
#include <linux/of_platform.h>
88
#include <linux/regmap.h>
99
#include <linux/mfd/syscon.h>
10-
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
1110
#include <asm/mach/arch.h>
1211

1312
#include "common.h"
1413
#include "cpuidle.h"
1514

16-
static void __init imx6sx_enet_clk_sel(void)
17-
{
18-
struct regmap *gpr;
19-
20-
gpr = syscon_regmap_lookup_by_compatible("fsl,imx6sx-iomuxc-gpr");
21-
if (!IS_ERR(gpr)) {
22-
regmap_update_bits(gpr, IOMUXC_GPR1,
23-
IMX6SX_GPR1_FEC_CLOCK_MUX_SEL_MASK, 0);
24-
regmap_update_bits(gpr, IOMUXC_GPR1,
25-
IMX6SX_GPR1_FEC_CLOCK_PAD_DIR_MASK, 0);
26-
} else {
27-
pr_err("failed to find fsl,imx6sx-iomux-gpr regmap\n");
28-
}
29-
}
30-
31-
static inline void imx6sx_enet_init(void)
32-
{
33-
imx6sx_enet_clk_sel();
34-
}
35-
3615
static void __init imx6sx_init_machine(void)
3716
{
3817
of_platform_default_populate(NULL, NULL, NULL);
3918

40-
imx6sx_enet_init();
4119
imx_anatop_init();
4220
imx6sx_pm_init();
4321
}

arch/arm/mach-imx/mach-imx7d.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ static void __init imx7d_enet_clk_sel(void)
4848
}
4949
}
5050

51-
static inline void imx7d_enet_init(void)
51+
static void __init imx7d_enet_init(void)
5252
{
5353
imx7d_enet_phy_init();
5454
imx7d_enet_clk_sel();

0 commit comments

Comments
 (0)