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


Groups > linux.kernel > #1424932

[PATCH 1/2] watchdog: ziirave_wdt: Correct I2C device id to fix module autoloading.

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Enric Balletbo i Serra <enric.balletbo@collabora.com>
Newsgroups linux.kernel
Subject [PATCH 1/2] watchdog: ziirave_wdt: Correct I2C device id to fix module autoloading.
Date Fri, 17 Jun 2016 13:00:01 +0200
Message-ID <rKZFf-5tp-1@gated-at.bofh.it> (permalink)
References <rKZFf-5tp-3@gated-at.bofh.it>
X-Mailer git-send-email 2.1.0
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 26
Organization linux.* mail to news gateway
X-Original-Cc Wim Van Sebroeck <wim@iguana.be>, Guenter Roeck <linux@roeck-us.net>, Martyn Welch <martyn.welch@collabora.com>
X-Original-Date Fri, 17 Jun 2016 12:52:33 +0200
X-Original-Message-ID <1466160754-15599-2-git-send-email-enric.balletbo@collabora.com>
X-Original-References <1466160754-15599-1-git-send-email-enric.balletbo@collabora.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1424932

Show key headers only | View raw


The I2C core removes the manufacturer prefix from the compatible field
so it reports to user-space the uevent i2c:rave-wdt, but this doesn't
match with the i2c_device_id (i2c:ziirave-wdt) array so the module is not
autoloaded. Correct the I2C device id to match with the reported uevent
and fix the module autoloading functionality.

Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
---
 drivers/watchdog/ziirave_wdt.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/watchdog/ziirave_wdt.c b/drivers/watchdog/ziirave_wdt.c
index cbe373de..fa1efef 100644
--- a/drivers/watchdog/ziirave_wdt.c
+++ b/drivers/watchdog/ziirave_wdt.c
@@ -339,7 +339,7 @@ static int ziirave_wdt_remove(struct i2c_client *client)
 }
 
 static struct i2c_device_id ziirave_wdt_id[] = {
-	{ "ziirave-wdt", 0 },
+	{ "rave-wdt", 0 },
 	{ }
 };
 MODULE_DEVICE_TABLE(i2c, ziirave_wdt_id);
-- 
2.1.0

Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] watchdog: ziirave_wdt: Correct I2C device id to fix module autoloading. Enric Balletbo i Serra <enric.balletbo@collabora.com> - 2016-06-17 13:00 +0200
  Re: [PATCH 1/2] watchdog: ziirave_wdt: Correct I2C device id to fix  module autoloading. Guenter Roeck <linux@roeck-us.net> - 2016-06-17 15:30 +0200

csiph-web