mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 18:25:27 +07:00
stmmac: dwmac-ipq806x: move ipq806x_gmac_fix_mac_speed function
Move ipq806x_gmac_fix_mac_speed in preparation for turning the setup glue callback in a proper probe function. Signed-off-by: Joachim Eastwood <manabian@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
a04c0aef74
commit
213088f6fa
@ -248,6 +248,13 @@ static void *ipq806x_gmac_of_parse(struct ipq806x_gmac *gmac)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void ipq806x_gmac_fix_mac_speed(void *priv, unsigned int speed)
|
||||||
|
{
|
||||||
|
struct ipq806x_gmac *gmac = priv;
|
||||||
|
|
||||||
|
ipq806x_gmac_set_speed(gmac, speed);
|
||||||
|
}
|
||||||
|
|
||||||
static void *ipq806x_gmac_setup(struct platform_device *pdev)
|
static void *ipq806x_gmac_setup(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct device *dev = &pdev->dev;
|
struct device *dev = &pdev->dev;
|
||||||
@ -330,13 +337,6 @@ static void *ipq806x_gmac_setup(struct platform_device *pdev)
|
|||||||
return gmac;
|
return gmac;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void ipq806x_gmac_fix_mac_speed(void *priv, unsigned int speed)
|
|
||||||
{
|
|
||||||
struct ipq806x_gmac *gmac = priv;
|
|
||||||
|
|
||||||
ipq806x_gmac_set_speed(gmac, speed);
|
|
||||||
}
|
|
||||||
|
|
||||||
static const struct stmmac_of_data ipq806x_gmac_data = {
|
static const struct stmmac_of_data ipq806x_gmac_data = {
|
||||||
.has_gmac = 1,
|
.has_gmac = 1,
|
||||||
.setup = ipq806x_gmac_setup,
|
.setup = ipq806x_gmac_setup,
|
||||||
|
Loading…
Reference in New Issue
Block a user