Skip to content

Commit

Permalink
OMAP2+: PM: fix section mismatch in pm_dbg_init()
Browse files Browse the repository at this point in the history
Fix the section mismatch warning:

  WARNING: vmlinux.o(.text+0x21118): Section mismatch
  in reference from the function pm_dbg_init() to the
  function .init.text:pwrdms_setup()
  The function pm_dbg_init() references
  the function __init pwrdms_setup().
  This is often because pm_dbg_init lacks a __init
  annotation or the annotation of pwrdms_setup is wrong.

Signed-off-by: Sanjeev Premi <premi@ti.com>
Signed-off-by: Kevin Hilman <khilman@ti.com>
  • Loading branch information
Sanjeev Premi authored and Kevin Hilman committed Jun 27, 2011
1 parent 59bec58 commit ec3cdb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/pm-debug.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ static int option_set(void *data, u64 val)

DEFINE_SIMPLE_ATTRIBUTE(pm_dbg_option_fops, option_get, option_set, "%llu\n");

static int pm_dbg_init(void)
static int __init pm_dbg_init(void)
{
struct dentry *d;

Expand Down

0 comments on commit ec3cdb5

Please sign in to comment.