diff options
author | Giuseppe CAVALLARO <peppe.cavallaro@st.com> | 2010-11-24 02:38:05 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-11-24 11:14:24 -0800 |
commit | 293bb1c41b728d4aa248fe8a0acd2b9066ff5c34 (patch) | |
tree | 18d96fedbebd22b855ad47b1891797f418bf6a79 /include/linux/stmmac.h | |
parent | 9dfeb4d953f914bd3bb56ce60e22ee84687399ce (diff) | |
download | op-kernel-dev-293bb1c41b728d4aa248fe8a0acd2b9066ff5c34.zip op-kernel-dev-293bb1c41b728d4aa248fe8a0acd2b9066ff5c34.tar.gz |
stmmac: add init/exit callback in plat_stmmacenet_data struct
This patch adds in the plat_stmmacenet_data
the init and exit callbacks that can be used
for invoking specific platform functions.
For example, on ST targets, these call the
PAD manager functions to set PIO lines and
syscfg registers.
The patch removes the stmmac_claim_resource
only used on STM Kernels as well.
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/stmmac.h')
-rw-r--r-- | include/linux/stmmac.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index d66c617..e103529 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h @@ -40,9 +40,9 @@ struct plat_stmmacenet_data { int pmt; void (*fix_mac_speed)(void *priv, unsigned int speed); void (*bus_setup)(void __iomem *ioaddr); -#ifdef CONFIG_STM_DRIVERS - struct stm_pad_config *pad_config; -#endif + int (*init)(struct platform_device *pdev); + void (*exit)(struct platform_device *pdev); + void *custom_cfg; void *bsp_priv; }; |