Staging/media: Use dev_ printks in cxd2099/cxd2099.h
Subsystems (2)
PATCH 1/1 Staging/media: Use dev_ printks in cxd2099/cxd2099.h
fixed below checkpatch warning.
- WARNING: Prefer netdev_warn(netdev, ... then dev_warn(dev, ... then pr_warn(... to printk(KERN_WARNING ...
Signed-off-by YAMANE Toshiaki <[email protected]>
--- drivers/staging/media/cxd2099/cxd2099.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/cxd2099/cxd2099.h +1 -1
@@ -43,7 +43,7 @@ struct dvb_ca_en50221 *cxd2099_attach(struct cxd2099_cfg *cfg,static inline struct dvb_ca_en50221 *cxd2099_attach (struct cxd2099_cfg *cfg,void *priv,struct i2c_adapter *i2c) { -printk (KERN_WARNING "%s: driver disabled by Kconfig\n" , __func__); +dev_warn (&i2c->dev,"%s: driver disabled by Kconfig\n" , __func__);return NULL ; }#endif
Signature · 1 line
1.7.9.5