diff options
author | Felipe Balbi <balbi@ti.com> | 2014-02-25 09:57:44 -0500 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-03-03 14:00:56 -0500 |
commit | 370aede6a18a41e01f2668108d847b598443fbc0 (patch) | |
tree | 641f93042962fe6c270e16aa7bb9f7d7c464f0c3 /drivers/mmc/host | |
parent | 2200300060ada5e32136d597502e446ac2ef2a27 (diff) |
mmc: dw_mmc: fix possible build error
Fix the following build errors:
drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_suspend’:
drivers/mmc/host/dw_mmc-k3.c:58:2: error: implicit declaration of
function ‘dw_mci_suspend’ [-Werror=implicit-function-declaration]
ret = dw_mci_suspend(host);
^
drivers/mmc/host/dw_mmc-k3.c: In function ‘dw_mci_k3_resume’:
drivers/mmc/host/dw_mmc-k3.c:76:2: error: implicit declaration of
function ‘dw_mci_resume’ [-Werror=implicit-function-declaration]
return dw_mci_resume(host);
^
drivers/mmc/host/dw_mmc-k3.c: At top level:
drivers/mmc/host/dw_mmc-k3.c:53:12: warning: ‘dw_mci_k3_suspend’ defined
but not used [-Wunused-function]
static int dw_mci_k3_suspend(struct device *dev)
^
drivers/mmc/host/dw_mmc-k3.c:65:12: warning: ‘dw_mci_k3_resume’ defined
but not used [-Wunused-function]
static int dw_mci_k3_resume(struct device *dev)
^
Signed-off-by: Felipe Balbi <balbi@ti.com>
Acked-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/host')
-rw-r--r-- | drivers/mmc/host/dw_mmc-k3.c | 2 | ||||
-rw-r--r-- | drivers/mmc/host/dw_mmc.h | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc-k3.c b/drivers/mmc/host/dw_mmc-k3.c index f567c219cff4..650f9cc3f7a6 100644 --- a/drivers/mmc/host/dw_mmc-k3.c +++ b/drivers/mmc/host/dw_mmc-k3.c | |||
@@ -50,6 +50,7 @@ static int dw_mci_k3_probe(struct platform_device *pdev) | |||
50 | return dw_mci_pltfm_register(pdev, drv_data); | 50 | return dw_mci_pltfm_register(pdev, drv_data); |
51 | } | 51 | } |
52 | 52 | ||
53 | #ifdef CONFIG_PM_SLEEP | ||
53 | static int dw_mci_k3_suspend(struct device *dev) | 54 | static int dw_mci_k3_suspend(struct device *dev) |
54 | { | 55 | { |
55 | struct dw_mci *host = dev_get_drvdata(dev); | 56 | struct dw_mci *host = dev_get_drvdata(dev); |
@@ -75,6 +76,7 @@ static int dw_mci_k3_resume(struct device *dev) | |||
75 | 76 | ||
76 | return dw_mci_resume(host); | 77 | return dw_mci_resume(host); |
77 | } | 78 | } |
79 | #endif /* CONFIG_PM_SLEEP */ | ||
78 | 80 | ||
79 | static SIMPLE_DEV_PM_OPS(dw_mci_k3_pmops, dw_mci_k3_suspend, dw_mci_k3_resume); | 81 | static SIMPLE_DEV_PM_OPS(dw_mci_k3_pmops, dw_mci_k3_suspend, dw_mci_k3_resume); |
80 | 82 | ||
diff --git a/drivers/mmc/host/dw_mmc.h b/drivers/mmc/host/dw_mmc.h index 306451fbbfe1..68349779c396 100644 --- a/drivers/mmc/host/dw_mmc.h +++ b/drivers/mmc/host/dw_mmc.h | |||
@@ -185,7 +185,7 @@ | |||
185 | 185 | ||
186 | extern int dw_mci_probe(struct dw_mci *host); | 186 | extern int dw_mci_probe(struct dw_mci *host); |
187 | extern void dw_mci_remove(struct dw_mci *host); | 187 | extern void dw_mci_remove(struct dw_mci *host); |
188 | #ifdef CONFIG_PM | 188 | #ifdef CONFIG_PM_SLEEP |
189 | extern int dw_mci_suspend(struct dw_mci *host); | 189 | extern int dw_mci_suspend(struct dw_mci *host); |
190 | extern int dw_mci_resume(struct dw_mci *host); | 190 | extern int dw_mci_resume(struct dw_mci *host); |
191 | #endif | 191 | #endif |