Skip to contentSkip to conversation

of_i2c: fix request_module() usage

PATCH In review maximilian attems 2 participants 2 messages Jun 12, 2008 – Jun 28, 2008 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 of_i2c: fix request_module() usage

similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b, the file the info.type value is read from could be broken.

---
 drivers/of/of_i2c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/of/of_i2c.c +1 -1
index b2ccdcb..117de8b 100644
@@ -100,7 +100,7 @@ void of_register_i2c_devices(struct i2c_adapter *adap,
 
 		info.addr = *addr;
 
-		request_module(info.type);
+		request_module("%s", info.type);
 
 		result = i2c_new_device(adap, &info);
 		if (result == NULL) {
Signature · 7 lines
1.5.5.3


_______________________________________________
i2c mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/i2c

A message that is not in the archive (sent off-list or not yet received): 1213256647-22708-1-git-send-email-max-U9r9yeDMy7A@public.gmane.org