u-boot-brain/drivers
Philipp Tomsich 61dff33b52 rockchip: clk: rk3399: fix warnings for unused variables in SPL/non-SPL
Due to differences in the code paths for SPL and non-SPL, some static
constant structures remain unused in each build variant. This raises
warnings with recent GCC versions (we currently use GCC-6.3).

The warnings addressed in this commit (by matching #if conditions for
the variable definition with their uses) are:

* for the SPL build:
    drivers/clk/rockchip/clk_rk3399.c:53:29: warning: 'cpll_init_cfg' defined but not used [-Wunused-const-variable=]
     static const struct pll_div cpll_init_cfg = PLL_DIVISORS(CPLL_HZ, 1, 2, 2);
                                 ^~~~~~~~~~~~~
    drivers/clk/rockchip/clk_rk3399.c:52:29: warning: 'gpll_init_cfg' defined but not used [-Wunused-const-variable=]
     static const struct pll_div gpll_init_cfg = PLL_DIVISORS(GPLL_HZ, 2, 2, 1);
                                 ^~~~~~~~~~~~~
* for the non-SPL build:
    drivers/clk/rockchip/clk_rk3399.c:54:29: warning: 'ppll_init_cfg' defined but not used [-Wunused-const-variable=]
     static const struct pll_div ppll_init_cfg = PLL_DIVISORS(PPLL_HZ, 2, 2, 1);
                                 ^~~~~~~~~~~~~

Signed-off-by: Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
Acked-by: Simon Glass <sjg@chromium.org>
2017-04-04 20:01:57 -06:00
..
adc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
bios_emulator bios_emulator: Fix cast for 64-bit compilation 2016-10-11 11:55:33 +08:00
block block: Move ceva driver to DM 2016-12-20 09:15:27 +01:00
bootcount bootcounter_ram: Fix misaligned cache warning 2016-11-28 15:10:34 -05:00
clk rockchip: clk: rk3399: fix warnings for unused variables in SPL/non-SPL 2017-04-04 20:01:57 -06:00
core regmap: use fdt address translation 2017-03-29 07:38:07 +02:00
cpu cpu: Add get_vendor callback 2016-10-19 09:01:51 +02:00
crypto crypto: Move CONFIG_SYS_FSL_SEC_LE and _BE to Kconfig 2017-01-04 19:40:19 -05:00
ddr ddr: fsl: Merge macro CONFIG_NUM_DDR_CONTROLLERS and CONFIG_SYS_NUM_DDR_CTRLS 2017-01-04 19:40:52 -05:00
demo dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
dfu dfu: align array in dfu_get_dev_type with enum dfu_device_type 2016-11-03 11:55:25 +01:00
dma treewide: replace #include <asm/errno.h> with <linux/errno.h> 2016-09-23 17:55:42 -04:00
fpga fpga: zynqmp: Remove empty functions 2017-01-10 10:18:11 +01:00
gpio gpio: Add Rapid GPIO2P driver for i.MX7ULP 2017-03-17 09:27:08 +01:00
hwmon mailaddr: Update mail address 2016-01-27 15:32:05 +01:00
i2c rockchip: i2c: Add compatibles for Rockchip Cortex-A9 socs 2017-04-04 20:01:57 -06:00
input dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
led dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
mailbox dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
memory memory: Move TI_AEMIF config to KCONFIG 2016-04-18 17:11:43 -04:00
misc mxc_ocotp: Update driver to support OCOTP controller on i.MX7ULP 2017-03-17 09:27:08 +01:00
mmc Merge git://git.denx.de/u-boot-tegra 2017-04-04 16:01:02 -04:00
mtd mtd: nand: remove nand size print from nand_init function 2017-03-28 10:39:33 -07:00
net Merge git://www.denx.de/git/u-boot-marvell 2017-04-04 09:17:56 -04:00
pch dm: Use dm_scan_fdt_dev() directly where possible 2016-07-27 14:15:54 -06:00
pci Merge git://git.denx.de/u-boot-dm 2017-04-04 09:18:57 -04:00
pcmcia powerpc: mpc824x: remove MPC824X cpu support 2015-01-05 12:08:55 -05:00
phy/marvell dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
pinctrl rockchip: pinctrl: rk3399: add GMAC (RGMII only) support 2017-04-04 20:01:57 -06:00
power sunxi: power: axp809.c: Fix aldo1-2 being disabled for mvolt != 0 2017-03-09 11:26:02 +09:00
pwm pwm: remove unneeded ifdef CONFIG_DM_PWM ... endif 2017-02-08 16:24:26 -05:00
qe powerpc: P1025: Remove macro CONFIG_P1025 2016-11-23 23:42:10 -08:00
ram ram: rename CONFIG_SPL_RAM_SUPPORT to CONFIG_SPL_RAM 2015-08-18 13:46:02 -04:00
remoteproc dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
reset reset: Add STi reset support 2017-03-26 13:22:58 -06:00
rtc rtc: pcf2127: Update Kconfig and code style 2017-01-14 16:47:59 -05:00
serial Merge branch 'master' of git://www.denx.de/git/u-boot-imx 2017-03-19 15:13:38 -04:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound of: clean up OF_CONTROL ifdef conditionals 2015-08-18 13:46:05 -04:00
spi drivers: ti_qspi: use syscon to get the address ctrl_mod_mmap register 2017-03-29 07:38:07 +02:00
spmi dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
sysreset rockchip: rk3328: add sysreset driver 2017-03-16 16:03:46 -06:00
thermal imx: thermal: Kconfig: add MX7 2017-01-02 17:08:25 +01:00
timer drivers: timer: Introduce ARC timer driver 2017-03-29 07:38:11 +02:00
tpm lib: tpm: Add command to list resources 2017-03-26 13:22:58 -06:00
twserial drivers: convert makefiles to Kbuild style 2013-10-31 13:26:01 -04:00
usb mvebu: usb: xhci: Add VBUS regulator supply to the host driver 2017-03-29 07:38:08 +02:00
video rockchip: video: Split out HDMI controller code 2017-04-04 20:01:57 -06:00
watchdog wdog: Add the watchdog driver for MX7ULP. 2017-03-17 09:27:08 +01:00
Kconfig fsl_ddr: Move DDR config options to driver Kconfig 2017-01-04 19:40:41 -05:00
Makefile spl: Allow PCH drivers to be used in SPL 2017-02-06 11:38:46 +08:00