Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: imx: Move 'imx6sl_set_wait_clk()'s prototype out to accessible header

Fixes the following W=1 kernel build warning(s):

drivers/clk/imx/clk-imx6sl.c:156:6: warning: no previous prototype for ‘imx6sl_set_wait_clk’ [-Wmissing-prototypes]

Cc: Russell King <linux@armlinux.org.uk>
Cc: Shawn Guo <shawnguo@kernel.org>
Cc: Sascha Hauer <s.hauer@pengutronix.de>
Cc: Pengutronix Kernel Team <kernel@pengutronix.de>
Cc: Fabio Estevam <festevam@gmail.com>
Cc: NXP Linux Team <linux-imx@nxp.com>
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Cc: linux-arm-kernel@lists.infradead.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Lee Jones and committed by
Shawn Guo
de5774d1 3af4df65

+18 -1
-1
arch/arm/mach-imx/common.h
··· 85 85 void imx_anatop_post_resume(void); 86 86 int imx6_set_lpm(enum mxc_cpu_pwr_mode mode); 87 87 void imx6_set_int_mem_clk_lpm(bool enable); 88 - void imx6sl_set_wait_clk(bool enter); 89 88 int imx_mmdc_get_ddr_type(void); 90 89 int imx7ulp_set_lpm(enum ulp_cpu_pwr_mode mode); 91 90
+1
arch/arm/mach-imx/cpuidle-imx6sl.c
··· 3 3 * Copyright (C) 2014 Freescale Semiconductor, Inc. 4 4 */ 5 5 6 + #include <linux/clk/imx.h> 6 7 #include <linux/cpuidle.h> 7 8 #include <linux/module.h> 8 9 #include <asm/cpuidle.h>
+1
arch/arm/mach-imx/pm-imx6.c
··· 4 4 * Copyright 2011 Linaro Ltd. 5 5 */ 6 6 7 + #include <linux/clk/imx.h> 7 8 #include <linux/delay.h> 8 9 #include <linux/init.h> 9 10 #include <linux/io.h>
+1
drivers/clk/imx/clk-imx6sl.c
··· 6 6 #include <linux/bits.h> 7 7 #include <linux/clk.h> 8 8 #include <linux/clkdev.h> 9 + #include <linux/clk/imx.h> 9 10 #include <linux/err.h> 10 11 #include <linux/of.h> 11 12 #include <linux/of_address.h>
+15
include/linux/clk/imx.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0-only */ 2 + /* 3 + * Copyright (C) 2020 Freescale Semiconductor, Inc. 4 + * 5 + * Author: Lee Jones <lee.jones@linaro.org> 6 + */ 7 + 8 + #ifndef __LINUX_CLK_IMX_H 9 + #define __LINUX_CLK_IMX_H 10 + 11 + #include <linux/types.h> 12 + 13 + void imx6sl_set_wait_clk(bool enter); 14 + 15 + #endif