diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2012-08-23 07:31:48 -0400 |
---|---|---|
committer | Chris Ball <cjb@laptop.org> | 2012-09-04 13:58:27 -0400 |
commit | 36c179a98a0755b98153e8f4ae08243fbfcd18ff (patch) | |
tree | 7c971dcaf0ed637c9a76d212647b4d69b73e9192 | |
parent | b37f9d98f3d28ad98cc6c1894159312914f49190 (diff) |
mmc: dw_mmc: fixed a section mismatch in dw_mci_init_slot
Fixed the below message.
WARNING: drivers/mmc/host/built-in.o(.text+0x5ee8): Section mismatch in reference from the function dw_mci_probe() to the function .init.text:dw_mci_init_slot()
The function dw_mci_probe() references
the function __init dw_mci_init_slot().
This is often because dw_mci_probe lacks a __init
annotation or the annotation of dw_mci_init_slot is wrong
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Will Newton <will.newton@imgtec.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
-rw-r--r-- | drivers/mmc/host/dw_mmc-pltfm.c | 4 | ||||
-rw-r--r-- | drivers/mmc/host/dw_mmc.c | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/drivers/mmc/host/dw_mmc-pltfm.c b/drivers/mmc/host/dw_mmc-pltfm.c index 92ec3eb3aae7..a54d3a359ccd 100644 --- a/drivers/mmc/host/dw_mmc-pltfm.c +++ b/drivers/mmc/host/dw_mmc-pltfm.c | |||
@@ -21,7 +21,7 @@ | |||
21 | #include <linux/mmc/dw_mmc.h> | 21 | #include <linux/mmc/dw_mmc.h> |
22 | #include "dw_mmc.h" | 22 | #include "dw_mmc.h" |
23 | 23 | ||
24 | static int dw_mci_pltfm_probe(struct platform_device *pdev) | 24 | static int __devinit dw_mci_pltfm_probe(struct platform_device *pdev) |
25 | { | 25 | { |
26 | struct dw_mci *host; | 26 | struct dw_mci *host; |
27 | struct resource *regs; | 27 | struct resource *regs; |
@@ -62,7 +62,7 @@ err_free: | |||
62 | return ret; | 62 | return ret; |
63 | } | 63 | } |
64 | 64 | ||
65 | static int __exit dw_mci_pltfm_remove(struct platform_device *pdev) | 65 | static int __devexit dw_mci_pltfm_remove(struct platform_device *pdev) |
66 | { | 66 | { |
67 | struct dw_mci *host = platform_get_drvdata(pdev); | 67 | struct dw_mci *host = platform_get_drvdata(pdev); |
68 | 68 | ||
diff --git a/drivers/mmc/host/dw_mmc.c b/drivers/mmc/host/dw_mmc.c index af40d227bece..36f98c09715e 100644 --- a/drivers/mmc/host/dw_mmc.c +++ b/drivers/mmc/host/dw_mmc.c | |||
@@ -1767,7 +1767,7 @@ static void dw_mci_work_routine_card(struct work_struct *work) | |||
1767 | } | 1767 | } |
1768 | } | 1768 | } |
1769 | 1769 | ||
1770 | static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) | 1770 | static int dw_mci_init_slot(struct dw_mci *host, unsigned int id) |
1771 | { | 1771 | { |
1772 | struct mmc_host *mmc; | 1772 | struct mmc_host *mmc; |
1773 | struct dw_mci_slot *slot; | 1773 | struct dw_mci_slot *slot; |