On Sun, Sep 30, 2012 at 04:50:32AM +0200, vj wrote: > --- > drivers/mfd/twl6030.c | 22 ++++++++++++++++++++++ > include/mfd/twl6030.h | 8 ++++++++ > 2 files changed, 30 insertions(+) > > diff --git a/drivers/mfd/twl6030.c b/drivers/mfd/twl6030.c > index 7ecfed8..b8b0418 100644 > --- a/drivers/mfd/twl6030.c > +++ b/drivers/mfd/twl6030.c > @@ -39,6 +39,28 @@ static int twl_probe(struct device_d *dev) > > devfs_create(&(twl_dev->core.cdev)); > > +#ifdef DEBUG > + { > + u8 i, jtag_rev, eprom_rev; > + int r; > + u64 dieid; > + r = twl6030_reg_read(twl_dev, TWL6030_JTAG_JTAGVERNUM, > + &jtag_rev); > + r |= twl6030_reg_read(twl_dev, TWL6030_JTAG_EPROM_REV, > + &eprom_rev); > + for (i = 0; i < 8; i++) > + r |= twl6030_reg_read(twl_dev, TWL6030_DIEID_0+i, > + ((u8 *)(&dieid))+i); > + if (r) > + debug("TWL6030 Error reading ID\n"); > + else > + debug("TWL6030 JTAG REV: 0x%02X, " > + "EPROM REV: 0x%02X, " > + "DIE ID: 0x%016llX\n", > + (unsigned)jtag_rev, (unsigned)eprom_rev, dieid); Please use dev_dbg for driver/device related messages. dev_dbg will add the correct context to the message. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox