staging: fsl_ppfe/eth: remove unused code
- remove gemac-bus-id related code that is unused. - remove unused prototype gemac_set_mdc_div. Signed-off-by: Calvin Johnson <calvin.johnson@nxp.com>
This commit is contained in:
parent
5f95d60da3
commit
e6092a5f07
|
@ -268,7 +268,6 @@ enum mac_loop {LB_NONE, LB_EXT, LB_LOCAL};
|
|||
void gemac_init(void *base, void *config);
|
||||
void gemac_disable_rx_checksum_offload(void *base);
|
||||
void gemac_enable_rx_checksum_offload(void *base);
|
||||
void gemac_set_mdc_div(void *base, int mdc_div);
|
||||
void gemac_set_speed(void *base, enum mac_speed gem_speed);
|
||||
void gemac_set_duplex(void *base, int duplex);
|
||||
void gemac_set_mode(void *base, int mode);
|
||||
|
|
|
@ -41,7 +41,6 @@ struct ls1012a_eth_platform_data {
|
|||
u32 mii_config;
|
||||
u32 phy_flags;
|
||||
u32 gem_id;
|
||||
u32 bus_id;
|
||||
u32 phy_id;
|
||||
u32 mdio_muxval;
|
||||
u8 mac_addr[ETH_ALEN];
|
||||
|
|
|
@ -55,13 +55,6 @@ static int pfe_get_gemac_if_properties(struct device_node *parent, int port, int
|
|||
ETH_ALEN);
|
||||
}
|
||||
|
||||
addr = of_get_property(gem, "fsl,gemac-bus-id", &size);
|
||||
if (!addr)
|
||||
pr_err("%s:%d Invalid gemac-bus-id....\n", __func__,
|
||||
__LINE__);
|
||||
else
|
||||
pdata->ls1012a_eth_pdata[port].bus_id = be32_to_cpup(addr);
|
||||
|
||||
phy_node = of_parse_phandle(gem, "phy-handle", 0);
|
||||
pdata->ls1012a_eth_pdata[port].phy_node = phy_node;
|
||||
if (phy_node) {
|
||||
|
|
Loading…
Reference in New Issue