Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ec3cdb5b authored by Sanjeev Premi's avatar Sanjeev Premi Committed by Kevin Hilman
Browse files

OMAP2+: PM: fix section mismatch in pm_dbg_init()



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: default avatarSanjeev Premi <premi@ti.com>
Signed-off-by: default avatarKevin Hilman <khilman@ti.com>
parent 59bec583
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;