u-boot-2016/drivers
Mugunthan V N 347348f9f7 drivers: net: phy: micrel: fix build errors with CONFIG_DM_ETH
When Micrel phy is selected without CONFIG_PHY_MICREL_KSZ9031 or
CONFIG_PHY_MICREL_KSZ9021 there  is a build error. Fixing this
by adding proper ifdefs

drivers/net/phy/micrel.c:370:39: error: array type has incomplete element type
 static const struct ksz90x1_reg_field ksz9031_ctl_grp[] =
                                       ^
drivers/net/phy/micrel.c:372:39: error: array type has incomplete element type
 static const struct ksz90x1_reg_field ksz9031_clk_grp[] =
                                       ^
drivers/net/phy/micrel.c: In function ‘ksz9031_of_config’:
drivers/net/phy/micrel.c:377:23: error: array type has incomplete element type
  struct ksz90x1_ofcfg ofcfg[] = {
                       ^
drivers/net/phy/micrel.c:379:13: error: ‘ksz90x1_rxd_grp’ undeclared (first use in this function)
   { MII_KSZ9031_EXT_RGMII_RX_DATA_SKEW, 2, ksz90x1_rxd_grp, 4 },
             ^
drivers/net/phy/micrel.c:379:13: note: each undeclared identifier is reported only once for each function it appears in
drivers/net/phy/micrel.c:380:13: error: ‘ksz90x1_txd_grp’ undeclared (first use in this function)
   { MII_KSZ9031_EXT_RGMII_TX_DATA_SKEW, 2, ksz90x1_txd_grp, 4 },
             ^
drivers/net/phy/micrel.c:386:3: warning: implicit declaration of function ‘ksz90x1_of_config_group’ [-Wimplicit-function-declaration]
   ret = ksz90x1_of_config_group(phydev, &(ofcfg[i]));
   ^
drivers/net/phy/micrel.c:377:23: warning: unused variable ‘ofcfg’ [-Wunused-variable]
  struct ksz90x1_ofcfg ofcfg[] = {
                       ^
drivers/net/phy/micrel.c: At top level:
drivers/net/phy/micrel.c:370:39: warning: ‘ksz9031_ctl_grp’ defined but not used [-Wunused-variable]
 static const struct ksz90x1_reg_field ksz9031_ctl_grp[] =
                                       ^
drivers/net/phy/micrel.c:372:39: warning: ‘ksz9031_clk_grp’ defined but not used [-Wunused-variable]
 static const struct ksz90x1_reg_field ksz9031_clk_grp[] =
                                       ^
scripts/Makefile.build:277: recipe for target 'drivers/net/phy/micrel.o' failed
make[1]: *** [drivers/net/phy/micrel.o] Error 1
Makefile:1201: recipe for target 'drivers/net/phy' failed
make: *** [drivers/net/phy] Error 2
make: *** Waiting for unfinished jobs....

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
2016-02-08 10:10:45 -05:00
..
adc
bios_emulator
block Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
bootcount
clk
core
cpu
crypto
ddr Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
demo
dfu
dma
fpga Revert "arm: socfpga: set the fpga global bit to disable HPS to FPGA signals" 2016-02-04 12:43:21 +01:00
gpio Merge branch 'agust@denx.de' of git://git.denx.de/u-boot-staging 2016-02-08 09:48:04 -05:00
hwmon
i2c
input
led
memory
misc
mmc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
mtd Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
net drivers: net: phy: micrel: fix build errors with CONFIG_DM_ETH 2016-02-08 10:10:45 -05:00
pch x86: pch9: Implement get_io_base op 2016-02-05 12:47:21 +08:00
pci
pcmcia
pinctrl
power
pwm
qe
ram
remoteproc
rtc
serial dm: pxa: serial: Drop serial_sa1100 serial driver 2016-02-08 10:10:42 -05:00
soc Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
sound
spi dm: pch: Rename get_sbase op to get_spi_base 2016-02-05 12:47:21 +08:00
thermal
timer
tpm
twserial
usb Use correct spelling of "U-Boot" 2016-02-06 12:00:59 +01:00
video video: Use 'int' for loop variables instead of short 2016-02-06 13:55:49 +01:00
watchdog
Kconfig
Makefile drivers: ddr: Add DDR2 SDRAM controller driver for Microchip PIC32. 2016-02-01 22:14:01 +01:00