Linux I2C development
 help / color / mirror / Atom feed
* [PATCH] [OF] request_module() use format string
@ 2008-06-12  5:02 maximilian attems
       [not found] ` <1213246926-10043-1-git-send-email-max-U9r9yeDMy7A@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: maximilian attems @ 2008-06-12  5:02 UTC (permalink / raw)
  To: davem-fT/PcQaiUtIeIZ0/mPfg9Q
  Cc: maximilian attems, i2c-GZX6beZjE8VD60Wz+7aTrA

similar to 326f6a5c9c9e1a62aec37bdc0c3f8d53adabe77b,
maybe writable by root thus worth fixing.

Signed-off-by: maximilian attems <max-U9r9yeDMy7A@public.gmane.org>
---
 drivers/of/of_i2c.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c
index b2ccdcb..117de8b 100644
--- a/drivers/of/of_i2c.c
+++ b/drivers/of/of_i2c.c
@@ -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) {
-- 
1.5.5.1


_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-06-12  7:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-12  5:02 [PATCH] [OF] request_module() use format string maximilian attems
     [not found] ` <1213246926-10043-1-git-send-email-max-U9r9yeDMy7A@public.gmane.org>
2008-06-12  6:27   ` Jean Delvare
     [not found]     ` <20080612082726.0f495687-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2008-06-12  7:22       ` maximilian attems

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox