diff options
author | Francesco Virlinzi <francesco.virlinzi@st.com> | 2012-04-18 15:48:19 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-04-19 20:08:44 -0400 |
commit | 3256251f9850d00c8e4a4fd82440092bb0f1fd7d (patch) | |
tree | 8326e0a296ed075a78182a19b8e8a4391b72e538 /include | |
parent | a104104fd70b5a8d03162468701f499901e250d2 (diff) |
stmmac: use custom init/exit functions in pm ops
Freeze and restore can call the custom init/exit functions.
Also the patch adds a custom data field that can be used
for storing platform data useful on restore the embedded
setup (e.g. GPIO, SYSCFG).
Signed-off-by: Francesco Virlinzi <francesco.virlinzi@st.com>
Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/stmmac.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/stmmac.h b/include/linux/stmmac.h index cf6403186359..f85c93d6e6da 100644 --- a/include/linux/stmmac.h +++ b/include/linux/stmmac.h | |||
@@ -109,6 +109,7 @@ struct plat_stmmacenet_data { | |||
109 | int (*init)(struct platform_device *pdev); | 109 | int (*init)(struct platform_device *pdev); |
110 | void (*exit)(struct platform_device *pdev); | 110 | void (*exit)(struct platform_device *pdev); |
111 | void *custom_cfg; | 111 | void *custom_cfg; |
112 | void *custom_data; | ||
112 | void *bsp_priv; | 113 | void *bsp_priv; |
113 | }; | 114 | }; |
114 | #endif | 115 | #endif |