Просмотр исходного кода

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 <hanjun.guo@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Hanjun Guo 12 лет назад
Родитель
Сommit
af97385ad4
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      drivers/cpufreq/gx-suspmod.c

+ 1 - 1
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;