Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1545794 > unrolled thread

[PATCH v2 12/12] power: supply: axp288_charger: Fix the module not auto-loading

Started byHans de Goede <hdegoede@redhat.com>
First post2016-12-21 15:40 +0100
Last post2016-12-21 15:40 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH v2 12/12] power: supply: axp288_charger: Fix the module not auto-loading Hans de Goede <hdegoede@redhat.com> - 2016-12-21 15:40 +0100

#1545794 — [PATCH v2 12/12] power: supply: axp288_charger: Fix the module not auto-loading

FromHans de Goede <hdegoede@redhat.com>
Date2016-12-21 15:40 +0100
Subject[PATCH v2 12/12] power: supply: axp288_charger: Fix the module not auto-loading
Message-ID<sQQdI-4Cy-43@gated-at.bofh.it>
Add a MODULE_DEVICE_TABLE to fix the module not auto-loading.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/power/supply/axp288_charger.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/power/supply/axp288_charger.c b/drivers/power/supply/axp288_charger.c
index 6e588e6..ca4fa51 100644
--- a/drivers/power/supply/axp288_charger.c
+++ b/drivers/power/supply/axp288_charger.c
@@ -856,8 +856,15 @@ static int axp288_charger_probe(struct platform_device *pdev)
 	return 0;
 }
 
+static const struct platform_device_id axp288_charger_id_table[] = {
+	{ .name = "axp288_charger" },
+	{},
+};
+MODULE_DEVICE_TABLE(platform, axp288_charger_id_table);
+
 static struct platform_driver axp288_charger_driver = {
 	.probe = axp288_charger_probe,
+	.id_table = axp288_charger_id_table,
 	.driver = {
 		.name = "axp288_charger",
 	},
-- 
2.9.3

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web