1. 08 7月, 2015 1 次提交
  2. 22 6月, 2015 2 次提交
    • P
      mips: make loongsoon serial driver explicitly modular · 85cc0288
      Paul Gortmaker 提交于
      The file looks as if it is non-modular, but it piggy-backs
      off CONFIG_SERIAL_8250 which is tristate.  If set to "=m"
      we will get this after the init/module header cleanup:
      
      arch/mips/loongson/common/serial.c:76:1: error: data definition has no type or storage class [-Werror]
      arch/mips/loongson/common/serial.c:76:1: error: type defaults to 'int' in declaration of 'device_initcall' [-Werror=implicit-int]
      arch/mips/loongson/common/serial.c:76:1: error: parameter names (without types) in function declaration [-Werror]
      arch/mips/loongson/common/serial.c:58:19: error: 'serial_init' defined but not used [-Werror=unused-function]
      cc1: all warnings being treated as errors
      make[3]: *** [arch/mips/loongson/common/serial.o] Error 1
      
      Make it clearly modular, and add a module_exit function,
      so that we avoid the above breakage.
      Reported-by: Nkbuild test robot <fengguang.wu@intel.com>
      Cc: Ralf Baechle <ralf@linux-mips.org>
      Cc: linux-mips@linux-mips.org
      Signed-off-by: NPaul Gortmaker <paul.gortmaker@windriver.com>
      Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      85cc0288
    • H
      MIPS: Loongson: Naming style cleanup and rework · 30ad29bb
      Huacai Chen 提交于
      Currently, code of Loongson-2/3 is under loongson directory and code of
      Loongson-1 is under loongson1 directory. Besides, there are Kconfig
      options such as MACH_LOONGSON and MACH_LOONGSON1. This naming style is
      very ugly and confusing. Since Loongson-2/3 are both 64-bit general-
      purpose CPU while Loongson-1 is 32-bit SoC, we rename both file names
      and Kconfig symbols from loongson/loongson1 to loongson64/loongson32.
      
      [ralf@linux-mips.org: Resolve a number of simple conflicts.]
      Signed-off-by: NHuacai Chen <chenhc@lemote.com>
      Cc: Steven J. Hill <Steven.Hill@imgtec.com>
      Cc: linux-mips@linux-mips.org
      Cc: Fuxin Zhang <zhangfx@lemote.com>
      Cc: Zhangjin Wu <wuzhangjin@gmail.com>
      Cc: Kelvin Cheung <keguang.zhang@gmail.com>
      Patchwork: https://patchwork.linux-mips.org/patch/9790/Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
      30ad29bb