From: Peng Fan <[email protected]> There is no user of get_imx_type() for i.MX9 SCMI platform, and cpu information is handled by cpu driver, so drop get_imx_type().
Signed-off-by: Peng Fan <[email protected]> --- arch/arm/mach-imx/imx9/scmi/common.h | 4 ---- arch/arm/mach-imx/imx9/scmi/soc.c | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/arch/arm/mach-imx/imx9/scmi/common.h b/arch/arm/mach-imx/imx9/scmi/common.h index c3610127dce..0cf7f3e4439 100644 --- a/arch/arm/mach-imx/imx9/scmi/common.h +++ b/arch/arm/mach-imx/imx9/scmi/common.h @@ -32,10 +32,6 @@ #define IMX952_CLK_24M IMX952_CLK_OSC24M #endif -#define IMX_PLAT_STR__(plat) # plat -#define IMX_PLAT_STR_(IMX_PLAT) IMX_PLAT_STR__(IMX_PLAT) -#define IMX_PLAT_STR IMX_PLAT_STR_(IMX_PLAT) - #define SCMI_CLK__(plat, clk) IMX ## plat ## _CLK_ ## clk #define SCMI_CLK_(plat, clk) SCMI_CLK__(plat, clk) #define SCMI_CLK(clk) SCMI_CLK_(IMX_PLAT, clk) diff --git a/arch/arm/mach-imx/imx9/scmi/soc.c b/arch/arm/mach-imx/imx9/scmi/soc.c index 7c107c88bb4..59707bbccc1 100644 --- a/arch/arm/mach-imx/imx9/scmi/soc.c +++ b/arch/arm/mach-imx/imx9/scmi/soc.c @@ -715,16 +715,6 @@ int get_reset_reason(bool sys, bool lm) return 0; } -const char *get_imx_type(u32 imxtype) -{ - switch (imxtype) { - case SCMI_CPU: - return IMX_PLAT_STR; - default: - return "??"; - } -} - void build_info(void) { u32 fw_version, sha1, res = 0, status; -- 2.51.0

