From: Hanjun Guo Date: Tue, 13 Aug 2013 10:20:08 +0000 (+0800) Subject: cpufreq / gx: Fix gx_detect_chipset() __init attribute location X-Git-Tag: upstream/snapshot3+hdmi~4325^2~1^2~16^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af97385ad4054fc2f2e1eddfe3d9f4a12e36e051;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git cpufreq / gx: Fix gx_detect_chipset() __init attribute location __init belongs after the return type on functions, not before it. Signed-off-by: Hanjun Guo Signed-off-by: Rafael J. Wysocki --- diff --git a/drivers/cpufreq/gx-suspmod.c b/drivers/cpufreq/gx-suspmod.c index ef5fee7..70442c7 100644 --- a/drivers/cpufreq/gx-suspmod.c +++ b/drivers/cpufreq/gx-suspmod.c @@ -183,7 +183,7 @@ static void gx_write_byte(int reg, int value) * gx_detect_chipset: * **/ -static __init struct pci_dev *gx_detect_chipset(void) +static struct pci_dev * __init gx_detect_chipset(void) { struct pci_dev *gx_pci = NULL;