Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR
authorTom Rini <trini@konsulko.com>
Wed, 18 Apr 2018 17:50:47 +0000 (13:50 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 27 Apr 2018 18:54:48 +0000 (14:54 -0400)
commitd024236e5a31a2b4b82cbcc98b31b8170fc88d28
treeab4d96f1b0c5e3991b97708f72679a7af7234222
parentf1b1f77060beadbfe9f42a3be00019bd025afbd6
Remove unnecessary instances of DECLARE_GLOBAL_DATA_PTR

We have a large number of places where while we historically referenced
gd in the code we no longer do, as well as cases where the code added
that line "just in case" during development and never dropped it.

Signed-off-by: Tom Rini <trini@konsulko.com>
362 files changed:
api/api_net.c
arch/arm/cpu/arm1136/mx31/timer.c
arch/arm/cpu/arm1136/mx35/timer.c
arch/arm/cpu/armv8/fsl-layerscape/soc.c
arch/arm/cpu/armv8/s32v234/cpu.c
arch/arm/cpu/pxa/timer.c
arch/arm/include/asm/arch-omap4/sys_proto.h
arch/arm/include/asm/arch-omap5/sys_proto.h
arch/arm/lib/cmd_boot.c
arch/arm/mach-at91/spl_atmel.c
arch/arm/mach-davinci/spl.c
arch/arm/mach-exynos/clock_init_exynos5.c
arch/arm/mach-exynos/mmu-arm64.c
arch/arm/mach-imx/cmd_dek.c
arch/arm/mach-imx/mx7ulp/pcc.c
arch/arm/mach-imx/mx7ulp/scg.c
arch/arm/mach-imx/mx8m/clock.c
arch/arm/mach-imx/mx8m/clock_slice.c
arch/arm/mach-imx/timer.c
arch/arm/mach-mvebu/armada3700/cpu.c
arch/arm/mach-mvebu/armada8k/cpu.c
arch/arm/mach-mvebu/sata.c
arch/arm/mach-mvebu/timer.c
arch/arm/mach-omap2/omap3/board.c
arch/arm/mach-omap2/omap4/hwinit.c
arch/arm/mach-omap2/omap5/hwinit.c
arch/arm/mach-rockchip/rk3036-board-spl.c
arch/arm/mach-rockchip/rk3188-board.c
arch/arm/mach-rockchip/rk322x-board-spl.c
arch/arm/mach-rockchip/rk3288-board-tpl.c
arch/arm/mach-rockchip/rk3368-board-spl.c
arch/arm/mach-rockchip/rk3368-board-tpl.c
arch/arm/mach-rockchip/rk3399-board-spl.c
arch/arm/mach-socfpga/clock_manager_arria10.c
arch/arm/mach-socfpga/clock_manager_gen5.c
arch/arm/mach-socfpga/fpga_manager.c
arch/arm/mach-socfpga/freeze_controller.c
arch/arm/mach-socfpga/misc_arria10.c
arch/arm/mach-socfpga/reset_manager.c
arch/arm/mach-socfpga/reset_manager_gen5.c
arch/arm/mach-socfpga/scan_manager.c
arch/arm/mach-socfpga/system_manager_gen5.c
arch/arm/mach-sunxi/board.c
arch/arm/mach-sunxi/dram_sun9i.c
arch/arm/mach-tegra/board186.c
arch/arm/mach-tegra/tegra186/nvtboot_board.c
arch/arm/mach-zynq/ddrc.c
arch/arm/mach-zynq/spl.c
arch/microblaze/cpu/spl.c
arch/microblaze/lib/bootm.c
arch/mips/mach-ath79/ar933x/ddr.c
arch/mips/mach-ath79/qca953x/ddr.c
arch/nds32/lib/boot.c
arch/powerpc/cpu/mpc85xx/cpu_init.c
arch/powerpc/cpu/mpc86xx/fdt.c
arch/powerpc/lib/extable.c
arch/powerpc/lib/spl.c
arch/riscv/lib/boot.c
arch/sandbox/lib/bootm.c
arch/x86/cpu/pci.c
arch/x86/cpu/qemu/cpu.c
arch/x86/cpu/tangier/tangier.c
arch/x86/cpu/x86_64/cpu.c
arch/x86/lib/lpc-uclass.c
arch/x86/lib/zimage.c
board/armadeus/opos6uldev/board.c
board/astro/mcf5373l/fpga.c
board/bachmann/ot1200/ot1200_spl.c
board/barco/platinum/spl_picon.c
board/barco/platinum/spl_titanium.c
board/cavium/thunderx/atf.c
board/cei/cei-tk1-som/cei-tk1-som.c
board/compulab/cm_fx6/common.c
board/compulab/cm_fx6/spl.c
board/compulab/cm_t43/spl.c
board/compulab/common/omap3_display.c
board/dhelectronics/dh_imx6/dh_imx6_spl.c
board/engicam/common/spl.c
board/engicam/imx6q/imx6q.c
board/engicam/imx6ul/imx6ul.c
board/esd/vme8349/pci.c
board/freescale/bsc9131rdb/ddr.c
board/freescale/bsc9132qds/ddr.c
board/freescale/common/vid.c
board/freescale/ls1021aqds/ls1021aqds.c
board/freescale/ls1088a/eth_ls1088ardb.c
board/freescale/m5329evb/nand.c
board/freescale/m5373evb/nand.c
board/freescale/mpc8308rdb/mpc8308rdb.c
board/freescale/mpc832xemds/pci.c
board/freescale/mpc8349emds/pci.c
board/freescale/mpc8349itx/pci.c
board/freescale/p1022ds/p1022ds.c
board/freescale/p1023rdb/ddr.c
board/gateworks/gw_ventana/gw_ventana_spl.c
board/gdsys/mpc8308/hrcon.c
board/gdsys/mpc8308/strider.c
board/gdsys/p1022/controlcenterd.c
board/geekbuying/geekbox/geekbox.c
board/intel/edison/edison.c
board/keymile/kmp204x/kmp204x.c
board/kosagi/novena/novena_spl.c
board/liebherr/mccmon6/spl.c
board/mpc8308_p1m/mpc8308_p1m.c
board/nvidia/jetson-tk1/jetson-tk1.c
board/overo/overo.c
board/qca/ap121/ap121.c
board/qca/ap143/ap143.c
board/rockchip/evb_rk3036/evb_rk3036.c
board/rockchip/evb_rk3229/evb_rk3229.c
board/rockchip/evb_rk3399/evb-rk3399.c
board/rockchip/kylin_rk3036/kylin_rk3036.c
board/rockchip/sheep_rk3368/sheep_rk3368.c
board/samsung/espresso7420/espresso7420.c
board/samsung/origen/origen.c
board/samsung/trats/trats.c
board/samsung/trats2/trats2.c
board/sbc8349/pci.c
board/sbc8548/sbc8548.c
board/siemens/draco/board.c
board/siemens/pxm2/board.c
board/siemens/rut/board.c
board/theobroma-systems/lion_rk3368/lion_rk3368.c
board/theobroma-systems/puma_rk3399/puma-rk3399.c
board/ti/ks2_evm/board_k2e.c
board/ti/ks2_evm/board_k2hk.c
board/ti/ks2_evm/board_k2l.c
board/toradex/colibri_vf/dcu.c
board/tplink/wdr4300/wdr4300.c
board/tqc/tqm834x/pci.c
board/tqc/tqma6/tqma6_mba6.c
board/udoo/udoo_spl.c
board/varisys/cyrus/cyrus.c
board/wandboard/spl.c
board/xes/xpedite537x/xpedite537x.c
board/xes/xpedite550x/xpedite550x.c
cmd/aes.c
cmd/blob.c
cmd/booti.c
cmd/cros_ec.c
cmd/i2c.c
common/cros_ec.c
common/lynxkdi.c
common/main.c
common/spl/spl_mmc.c
common/spl/spl_net.c
common/spl/spl_sata.c
common/spl/spl_sdp.c
common/spl/spl_usb.c
common/usb_hub.c
disk/part.c
drivers/adc/adc-uclass.c
drivers/ata/dwc_ahci.c
drivers/clk/at91/clk-plladiv.c
drivers/clk/at91/clk-utmi.c
drivers/clk/at91/sckc.c
drivers/clk/clk-hsdk-cgu.c
drivers/clk/clk_stm32h7.c
drivers/clk/clk_zynqmp.c
drivers/clk/exynos/clk-exynos7420.c
drivers/clk/rockchip/clk_rk3036.c
drivers/clk/rockchip/clk_rk3128.c
drivers/clk/rockchip/clk_rk3188.c
drivers/clk/rockchip/clk_rk322x.c
drivers/clk/rockchip/clk_rk3328.c
drivers/clk/rockchip/clk_rk3368.c
drivers/clk/rockchip/clk_rk3399.c
drivers/clk/rockchip/clk_rv1108.c
drivers/cpu/cpu-uclass.c
drivers/ddr/altera/sdram.c
drivers/ddr/fsl/main.c
drivers/dma/dma-uclass.c
drivers/fpga/socfpga.c
drivers/fpga/socfpga_arria10.c
drivers/fpga/socfpga_gen5.c
drivers/gpio/hsdk-creg-gpio.c
drivers/gpio/imx_rgpio2p.c
drivers/gpio/mvebu_gpio.c
drivers/gpio/mxc_gpio.c
drivers/gpio/pm8916_gpio.c
drivers/gpio/sandbox.c
drivers/gpio/sunxi_gpio.c
drivers/gpio/tegra186_gpio.c
drivers/gpio/tegra_gpio.c
drivers/i2c/ast_i2c.c
drivers/i2c/i2c-cdns.c
drivers/i2c/imx_lpi2c.c
drivers/i2c/omap24xx_i2c.c
drivers/i2c/rk_i2c.c
drivers/i2c/sandbox_i2c.c
drivers/i2c/stm32f7_i2c.c
drivers/i2c/tegra_i2c.c
drivers/input/cros_ec_keyb.c
drivers/input/tegra-kbc.c
drivers/led/led_gpio.c
drivers/mailbox/mailbox-uclass.c
drivers/mailbox/tegra-hsp.c
drivers/misc/cros_ec.c
drivers/misc/cros_ec_sandbox.c
drivers/misc/cros_ec_spi.c
drivers/misc/i2c_eeprom_emul.c
drivers/misc/spltest_sandbox.c
drivers/misc/syscon_sandbox.c
drivers/mmc/arm_pl180_mmci.c
drivers/mmc/bcm2835_sdhost.c
drivers/mmc/gen_atmel_mci.c
drivers/mmc/mmc-uclass.c
drivers/mmc/rockchip_dw_mmc.c
drivers/mmc/rockchip_sdhci.c
drivers/mmc/sandbox_mmc.c
drivers/mmc/stm32_sdmmc2.c
drivers/mmc/tegra_mmc.c
drivers/mtd/nand/nand.c
drivers/mtd/spi/sandbox.c
drivers/mtd/spi/spi_flash.c
drivers/net/designware.c
drivers/net/fsl_mcdmafec.c
drivers/net/gmac_rockchip.c
drivers/net/lpc32xx_eth.c
drivers/net/mcffec.c
drivers/net/netconsole.c
drivers/net/phy/micrel_ksz8xxx.c
drivers/net/phy/micrel_ksz90x1.c
drivers/pch/pch-uclass.c
drivers/pci/pci-aardvark.c
drivers/pci/pci-emul-uclass.c
drivers/pci/pci_sandbox.c
drivers/pci/pci_tegra.c
drivers/phy/meson-gxl-usb2.c
drivers/phy/meson-gxl-usb3.c
drivers/phy/phy-uclass.c
drivers/phy/sandbox-phy.c
drivers/pinctrl/aspeed/pinctrl_ast2500.c
drivers/pinctrl/exynos/pinctrl-exynos7420.c
drivers/pinctrl/renesas/pfc.c
drivers/pinctrl/rockchip/pinctrl_rk3036.c
drivers/pinctrl/rockchip/pinctrl_rk3328.c
drivers/pinctrl/rockchip/pinctrl_rk3368.c
drivers/pinctrl/rockchip/pinctrl_rk3399.c
drivers/pinctrl/rockchip/pinctrl_rv1108.c
drivers/power/domain/power-domain-uclass.c
drivers/power/pmic/act8846.c
drivers/power/pmic/i2c_pmic_emul.c
drivers/power/pmic/lp873x.c
drivers/power/pmic/lp87565.c
drivers/power/pmic/max77686.c
drivers/power/pmic/max8997.c
drivers/power/pmic/max8998.c
drivers/power/pmic/palmas.c
drivers/power/pmic/pfuze100.c
drivers/power/pmic/pm8916.c
drivers/power/pmic/pmic-uclass.c
drivers/power/pmic/pmic_tps65910_dm.c
drivers/power/pmic/rk8xx.c
drivers/power/pmic/s2mps11.c
drivers/power/pmic/s5m8767.c
drivers/power/pmic/sandbox.c
drivers/power/pmic/tps65090.c
drivers/power/regulator/fixed.c
drivers/power/regulator/lp873x_regulator.c
drivers/power/regulator/lp87565_regulator.c
drivers/power/regulator/max77686.c
drivers/power/regulator/palmas_regulator.c
drivers/power/regulator/pbias_regulator.c
drivers/power/regulator/regulator-uclass.c
drivers/power/regulator/s2mps11_regulator.c
drivers/power/regulator/s5m8767.c
drivers/power/regulator/sandbox.c
drivers/pwm/exynos_pwm.c
drivers/pwm/rk_pwm.c
drivers/pwm/sandbox_pwm.c
drivers/pwm/tegra_pwm.c
drivers/ram/rockchip/dmc-rk3368.c
drivers/ram/rockchip/sdram_rk3128.c
drivers/ram/rockchip/sdram_rk3188.c
drivers/ram/rockchip/sdram_rk3288.c
drivers/ram/rockchip/sdram_rk3328.c
drivers/ram/rockchip/sdram_rk3399.c
drivers/ram/stm32_sdram.c
drivers/ram/stm32mp1/stm32mp1_ram.c
drivers/reset/ast2500-reset.c
drivers/reset/reset-uclass.c
drivers/rtc/i2c_rtc_emul.c
drivers/serial/altera_jtag_uart.c
drivers/serial/lpc32xx_hsuart.c
drivers/serial/serial_meson.c
drivers/serial/serial_stm32.c
drivers/serial/serial_xuartlite.c
drivers/serial/serial_zynq.c
drivers/spi/altera_spi.c
drivers/spi/atmel_spi.c
drivers/spi/rk_spi.c
drivers/spi/sandbox_spi.c
drivers/spi/tegra114_spi.c
drivers/spmi/spmi-sandbox.c
drivers/spmi/spmi-uclass.c
drivers/sysreset/sysreset_sandbox.c
drivers/timer/ag101p_timer.c
drivers/timer/altera_timer.c
drivers/timer/ast_timer.c
drivers/timer/atcpit100_timer.c
drivers/timer/omap-timer.c
drivers/tpm/tpm_tis_infineon.c
drivers/usb/emul/sandbox_flash.c
drivers/usb/emul/sandbox_hub.c
drivers/usb/emul/sandbox_keyb.c
drivers/usb/emul/usb-emul-uclass.c
drivers/usb/host/dwc2.c
drivers/usb/host/dwc3-of-simple.c
drivers/usb/host/ehci-atmel.c
drivers/usb/host/ehci-tegra.c
drivers/usb/host/usb-sandbox.c
drivers/usb/host/usb-uclass.c
drivers/usb/host/xhci-dwc3.c
drivers/usb/host/xhci-fsl.c
drivers/usb/host/xhci-mvebu.c
drivers/usb/host/xhci-omap.c
drivers/usb/host/xhci-rockchip.c
drivers/usb/host/xhci-zynqmp.c
drivers/video/backlight_gpio.c
drivers/video/bridge/anx6345.c
drivers/video/exynos/exynos_dp_lowlevel.c
drivers/video/mx3fb.c
drivers/video/pwm_backlight.c
drivers/video/rockchip/rk3288_mipi.c
drivers/video/rockchip/rk3399_mipi.c
drivers/video/rockchip/rk_edp.c
drivers/video/simple_panel.c
drivers/video/tegra124/display.c
drivers/video/tegra124/dp.c
drivers/video/tegra124/sor.c
drivers/watchdog/ast_wdt.c
drivers/watchdog/mpc8xx_wdt.c
drivers/watchdog/sandbox_wdt.c
drivers/watchdog/ulp_wdog.c
drivers/watchdog/wdt-uclass.c
env/ext4.c
env/fat.c
env/sata.c
lib/efi/efi.c
lib/efi/efi_stub.c
lib/efi_loader/efi_image_loader.c
lib/efi_loader/efi_net.c
lib/of_live.c
lib/smbios.c
net/net.c
post/lib_powerpc/cpu.c
test/dm/adc.c
test/dm/eth.c
test/dm/gpio.c
test/dm/led.c
test/dm/mmc.c
test/dm/phy.c
test/dm/pmic.c
test/dm/pwm.c
test/dm/regmap.c
test/dm/regulator.c
test/dm/spmi.c
test/dm/syscon.c
test/dm/timer.c
test/dm/usb.c
test/dm/video.c