Patchwork Loongson: Add module info to the loongson2_clock driver

login
register
mail settings
Submitter Wu Zhangjin
Date 2010-03-09 04:03:21
Message ID <1268153601-4396-1-git-send-email-wuzhangin@gmail.com>
Download mbox | patch
Permalink /patch/1045/
State Accepted
Delegated to: Ralf Baechle
Headers show

Comments

Wu Zhangjin - 2010-03-09 04:03:21
From: Wu Zhangjin <wuzhangjin@gmail.com>

This patch fixes the warning of the tool which checks the module info of
the loongson2_clock driver when inserting it into the kernel:

"Feb 25 23:42:27 localhost kernel: [    4.965000] loongson2_clock: module
license 'unspecified' taints kernel."

Reported-by: Liu Shiwei <liushiwei@gmail.com>
Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>
---
 arch/mips/kernel/cpufreq/loongson2_clock.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
Ralf Baechle - 2010-03-11 08:03:47
On Wed, Mar 10, 2010 at 12:53:21AM +0800, Wu Zhangjin wrote:

> This patch fixes the warning of the tool which checks the module info of
> the loongson2_clock driver when inserting it into the kernel:
> 
> "Feb 25 23:42:27 localhost kernel: [    4.965000] loongson2_clock: module
> license 'unspecified' taints kernel."
> 
> Reported-by: Liu Shiwei <liushiwei@gmail.com>
> Signed-off-by: Wu Zhangjin <wuzhangjin@gmail.com>

Thanks, applied.

  Ralf

Patch

diff --git a/arch/mips/kernel/cpufreq/loongson2_clock.c b/arch/mips/kernel/cpufreq/loongson2_clock.c
index d7ca256..3eaae1d 100644
--- a/arch/mips/kernel/cpufreq/loongson2_clock.c
+++ b/arch/mips/kernel/cpufreq/loongson2_clock.c
@@ -164,3 +164,7 @@  void loongson2_cpu_wait(void)
 	spin_unlock_irqrestore(&loongson2_wait_lock, flags);
 }
 EXPORT_SYMBOL_GPL(loongson2_cpu_wait);
+
+MODULE_AUTHOR("Yanhua <yanh@lemote.com>");
+MODULE_DESCRIPTION("cpuclock driver of Loongson2F");
+MODULE_LICENSE("GPL");