Commit 36c179a9 authored by Jaehoon Chung's avatar Jaehoon Chung Committed by Chris Ball

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: default avatarJaehoon Chung <jh80.chung@samsung.com>
Signed-off-by: default avatarKyungmin Park <kyungmin.park@samsung.com>
Acked-by: default avatarWill Newton <will.newton@imgtec.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent b37f9d98
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include <linux/mmc/dw_mmc.h> #include <linux/mmc/dw_mmc.h>
#include "dw_mmc.h" #include "dw_mmc.h"
static int dw_mci_pltfm_probe(struct platform_device *pdev) static int __devinit dw_mci_pltfm_probe(struct platform_device *pdev)
{ {
struct dw_mci *host; struct dw_mci *host;
struct resource *regs; struct resource *regs;
...@@ -62,7 +62,7 @@ static int dw_mci_pltfm_probe(struct platform_device *pdev) ...@@ -62,7 +62,7 @@ static int dw_mci_pltfm_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int __exit dw_mci_pltfm_remove(struct platform_device *pdev) static int __devexit dw_mci_pltfm_remove(struct platform_device *pdev)
{ {
struct dw_mci *host = platform_get_drvdata(pdev); struct dw_mci *host = platform_get_drvdata(pdev);
......
...@@ -1767,7 +1767,7 @@ static void dw_mci_work_routine_card(struct work_struct *work) ...@@ -1767,7 +1767,7 @@ static void dw_mci_work_routine_card(struct work_struct *work)
} }
} }
static int __init dw_mci_init_slot(struct dw_mci *host, unsigned int id) static int dw_mci_init_slot(struct dw_mci *host, unsigned int id)
{ {
struct mmc_host *mmc; struct mmc_host *mmc;
struct dw_mci_slot *slot; struct dw_mci_slot *slot;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment