Skip to content

Commit

Permalink
mmc: dw_mmc: fixed a section mismatch in dw_mci_init_slot
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jaehoon Chung authored and Chris Ball committed Sep 4, 2012
1 parent b37f9d9 commit 36c179a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/host/dw_mmc-pltfm.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <linux/mmc/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 resource *regs;
Expand Down Expand Up @@ -62,7 +62,7 @@ static int dw_mci_pltfm_probe(struct platform_device *pdev)
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);

Expand Down
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 dw_mci_slot *slot;
Expand Down

0 comments on commit 36c179a

Please sign in to comment.