* [PATCH] Replace dev_warn with printk in pca-algo
@ 2008-03-10 13:29 Wolfram Sang
[not found] ` <20080310132909.GA13941-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Wolfram Sang @ 2008-03-10 13:29 UTC (permalink / raw)
To: I2C Mailing List
[-- Attachment #1.1: Type: text/plain, Size: 1288 bytes --]
Hello,
this patch needs to be applied on top of my patch
'i2c-pca-algo_extensions.diff'.
Bye,
Wolfram
===
Subject: Replace dev_warn with printk in pca-algo
From: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
Replace dev_warn as it would be executed before the device is registered.
Signed-off-by: Wolfram Sang <w.sang-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
---
drivers/i2c/algos/i2c-algo-pca.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Index: linux-playground/drivers/i2c/algos/i2c-algo-pca.c
===================================================================
--- linux-playground.orig/drivers/i2c/algos/i2c-algo-pca.c 2008-03-10 14:10:59.000000000 +0100
+++ linux-playground/drivers/i2c/algos/i2c-algo-pca.c 2008-03-10 14:15:36.000000000 +0100
@@ -337,7 +337,9 @@
struct i2c_algo_pca_data *pca_data = adap->algo_data;
if (pca_data->i2c_clock > 7) {
- dev_warn(&adap->dev, "Invalid I2C clock speed selected. Trying default.\n");
+ printk(KERN_WARNING "%s: Invalid I2C clock speed selected. Trying default.\n",
+ adap->name);
pca_data->i2c_clock = I2C_PCA_CON_59kHz;
}
--
Dipl.-Ing. Wolfram Sang | http://www.pengutronix.de
Pengutronix - Linux Solutions for Science and Industry
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 157 bytes --]
_______________________________________________
i2c mailing list
i2c-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org
http://lists.lm-sensors.org/mailman/listinfo/i2c
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-03-10 21:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-10 13:29 [PATCH] Replace dev_warn with printk in pca-algo Wolfram Sang
[not found] ` <20080310132909.GA13941-bIcnvbaLZ9MEGnE8C9+IrQ@public.gmane.org>
2008-03-10 21:03 ` Jean Delvare
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).