Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753969AbbKGQ0O (ORCPT ); Sat, 7 Nov 2015 11:26:14 -0500 Received: from mail-wi0-f182.google.com ([209.85.212.182]:36224 "EHLO mail-wi0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753821AbbKGQ0G (ORCPT ); Sat, 7 Nov 2015 11:26:06 -0500 From: Peter Robinson To: Lee Jones , patches@opensource.wolfsonmicro.com, linux-kernel@vger.kernel.org, Mark Brown Cc: Peter Robinson , Subject: [PATCH] mfd: wm8994: Add module description/author/license information Date: Sat, 7 Nov 2015 16:25:39 +0000 Message-Id: <1446913539-8940-2-git-send-email-pbrobinson@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1446913539-8940-1-git-send-email-pbrobinson@gmail.com> References: <1446913539-8940-1-git-send-email-pbrobinson@gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2600 Lines: 69 When compiled as a module we get a tainted kernel because of the lack of the module information and the following errors. Add details to fix the issue when wm8994_irq/wm8994_regmap are modular. wm8994_irq: module license 'unspecified' taints kernel. wm8994_irq: Unknown symbol irq_domain_xlate_twocell (err 0) wm8994_irq: Unknown symbol regmap_write (err 0) wm8994_irq: Unknown symbol gpiod_to_irq (err 0) wm8994_irq: Unknown symbol irq_modify_status (err 0) wm8994_irq: Unknown symbol irq_set_chip_and_handler_name (err 0) wm8994_irq: Unknown symbol regmap_add_irq_chip (err 0) wm8994_irq: Unknown symbol gpiod_get_raw_value_cansleep (err 0) wm8994_irq: Unknown symbol handle_nested_irq (err 0) wm8994_irq: Unknown symbol __irq_domain_add (err 0) wm8994_irq: Unknown symbol irq_create_mapping (err 0) wm8994_irq: Unknown symbol gpio_to_desc (err 0) wm8994_irq: Unknown symbol regmap_del_irq_chip (err 0) wm8994_regmap: module license 'unspecified' taints kernel. Cc: Signed-off-by: Peter Robinson --- drivers/mfd/wm8994-irq.c | 5 +++++ drivers/mfd/wm8994-regmap.c | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/drivers/mfd/wm8994-irq.c b/drivers/mfd/wm8994-irq.c index 18710f3..5538521 100644 --- a/drivers/mfd/wm8994-irq.c +++ b/drivers/mfd/wm8994-irq.c @@ -262,3 +262,8 @@ void wm8994_irq_exit(struct wm8994 *wm8994) regmap_del_irq_chip(wm8994->irq, wm8994->irq_data); } EXPORT_SYMBOL(wm8994_irq_exit); + +MODULE_DESCRIPTION("WM8994 interrupt controller"); +MODULE_AUTHOR("Mark Brown "); +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:wm8994-irq"); diff --git a/drivers/mfd/wm8994-regmap.c b/drivers/mfd/wm8994-regmap.c index c56b160..d088185 100644 --- a/drivers/mfd/wm8994-regmap.c +++ b/drivers/mfd/wm8994-regmap.c @@ -14,6 +14,7 @@ #include #include +#include #include #include @@ -1289,3 +1290,8 @@ struct regmap_config wm8994_base_regmap_config = { .val_bits = 16, }; EXPORT_SYMBOL(wm8994_base_regmap_config); + +MODULE_DESCRIPTION("WM8994 Register mapping data"); +MODULE_AUTHOR("Mark Brown "); +MODULE_LICENSE("GPL v2"); +MODULE_ALIAS("platform:wm8994-regmap"); -- 2.5.0 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/