Commit 681aae82 authored by Sean MacLennan's avatar Sean MacLennan Committed by Jean Delvare

i2c-ibm_iic: Change the log levels

Change the log levels based on feedback from linxppc-dev.
Signed-off-by: default avatarSean MacLennan <smaclennan@pikatech.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent 244fbbb8
...@@ -650,7 +650,7 @@ static inline u8 iic_clckdiv(unsigned int opb) ...@@ -650,7 +650,7 @@ static inline u8 iic_clckdiv(unsigned int opb)
opb /= 1000000; opb /= 1000000;
if (opb < 20 || opb > 150){ if (opb < 20 || opb > 150){
printk(KERN_CRIT "ibm-iic: invalid OPB clock frequency %u MHz\n", printk(KERN_WARNING "ibm-iic: invalid OPB clock frequency %u MHz\n",
opb); opb);
opb = opb < 20 ? 20 : 150; opb = opb < 20 ? 20 : 150;
} }
...@@ -672,7 +672,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){ ...@@ -672,7 +672,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){
ocp->def->index); ocp->def->index);
if (!(dev = kzalloc(sizeof(*dev), GFP_KERNEL))) { if (!(dev = kzalloc(sizeof(*dev), GFP_KERNEL))) {
printk(KERN_CRIT "ibm-iic%d: failed to allocate device data\n", printk(KERN_ERR "ibm-iic%d: failed to allocate device data\n",
ocp->def->index); ocp->def->index);
return -ENOMEM; return -ENOMEM;
} }
...@@ -687,7 +687,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){ ...@@ -687,7 +687,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){
} }
if (!(dev->vaddr = ioremap(ocp->def->paddr, sizeof(struct iic_regs)))){ if (!(dev->vaddr = ioremap(ocp->def->paddr, sizeof(struct iic_regs)))){
printk(KERN_CRIT "ibm-iic%d: failed to ioremap device registers\n", printk(KERN_ERR "ibm-iic%d: failed to ioremap device registers\n",
dev->idx); dev->idx);
ret = -ENXIO; ret = -ENXIO;
goto fail2; goto fail2;
...@@ -745,7 +745,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){ ...@@ -745,7 +745,7 @@ static int __devinit iic_probe(struct ocp_device *ocp){
adap->nr = dev->idx >= 0 ? dev->idx : 0; adap->nr = dev->idx >= 0 ? dev->idx : 0;
if ((ret = i2c_add_numbered_adapter(adap)) < 0) { if ((ret = i2c_add_numbered_adapter(adap)) < 0) {
printk(KERN_CRIT "ibm-iic%d: failed to register i2c adapter\n", printk(KERN_ERR "ibm-iic%d: failed to register i2c adapter\n",
dev->idx); dev->idx);
goto fail; goto fail;
} }
...@@ -778,7 +778,7 @@ static void __devexit iic_remove(struct ocp_device *ocp) ...@@ -778,7 +778,7 @@ static void __devexit iic_remove(struct ocp_device *ocp)
struct ibm_iic_private* dev = (struct ibm_iic_private*)ocp_get_drvdata(ocp); struct ibm_iic_private* dev = (struct ibm_iic_private*)ocp_get_drvdata(ocp);
BUG_ON(dev == NULL); BUG_ON(dev == NULL);
if (i2c_del_adapter(&dev->adap)){ if (i2c_del_adapter(&dev->adap)){
printk(KERN_CRIT "ibm-iic%d: failed to delete i2c adapter :(\n", printk(KERN_ERR "ibm-iic%d: failed to delete i2c adapter :(\n",
dev->idx); dev->idx);
/* That's *very* bad, just shutdown IRQ ... */ /* That's *very* bad, just shutdown IRQ ... */
if (dev->irq >= 0){ if (dev->irq >= 0){
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment