Skip to content

Commit

Permalink
sh: Fix section mismatch in platform bus notifier.
Browse files Browse the repository at this point in the history
The runtime PM for SH-Mobile code had platform_bus_notify() as __devinit,
which is rather bogus. Kill off the annotation, which subsequently
silences the section mismatch warnings.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Paul Mundt committed Aug 23, 2009
1 parent af76756 commit a62926f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions arch/sh/kernel/cpu/shmobile/pm_runtime.c
Original file line number Diff line number Diff line change
Expand Up @@ -251,8 +251,8 @@ int platform_pm_runtime_idle(struct device *dev)
return ret;
}

static int __devinit platform_bus_notify(struct notifier_block *nb,
unsigned long action, void *data)
static int platform_bus_notify(struct notifier_block *nb,
unsigned long action, void *data)
{
struct device *dev = data;
struct platform_device *pdev = to_platform_device(dev);
Expand Down Expand Up @@ -300,5 +300,4 @@ static int __init sh_pm_runtime_init(void)
bus_register_notifier(&platform_bus_type, &platform_bus_notifier);
return 0;
}

core_initcall(sh_pm_runtime_init);

0 comments on commit a62926f

Please sign in to comment.