aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/i2c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-04-09 20:36:37 -0400
committerWolfram Sang <wsa@the-dreams.de>2013-04-15 12:16:59 -0400
commitca0c1ff528a332e6f83d4566c2c8eb05b108c83c (patch)
tree252de00b50fdc35e3cf788c074002cafd60111b1 /drivers/i2c
parent1cb715ca46946b1ad32735d11830a84a433f2b1b (diff)
i2c-designware-pci: use dev_err() instead of printk()
With dev_err() we can get the device instance printed as well and is pretty much standard to use dev_* macros in the drivers anyway. In addition correct the indentation of probe() arguments. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com> Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
Diffstat (limited to 'drivers/i2c')
-rw-r--r--drivers/i2c/busses/i2c-designware-pcidrv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-designware-pcidrv.c b/drivers/i2c/busses/i2c-designware-pcidrv.c
index 7c5e383c350d..eed149d0b68d 100644
--- a/drivers/i2c/busses/i2c-designware-pcidrv.c
+++ b/drivers/i2c/busses/i2c-designware-pcidrv.c
@@ -208,7 +208,7 @@ static u32 i2c_dw_get_clk_rate_khz(struct dw_i2c_dev *dev)
208} 208}
209 209
210static int i2c_dw_pci_probe(struct pci_dev *pdev, 210static int i2c_dw_pci_probe(struct pci_dev *pdev,
211const struct pci_device_id *id) 211 const struct pci_device_id *id)
212{ 212{
213 struct dw_i2c_dev *dev; 213 struct dw_i2c_dev *dev;
214 struct i2c_adapter *adap; 214 struct i2c_adapter *adap;
@@ -218,7 +218,7 @@ const struct pci_device_id *id)
218 struct dw_pci_controller *controller; 218 struct dw_pci_controller *controller;
219 219
220 if (id->driver_data >= ARRAY_SIZE(dw_pci_controllers)) { 220 if (id->driver_data >= ARRAY_SIZE(dw_pci_controllers)) {
221 printk(KERN_ERR "dw_i2c_pci_probe: invalid driver data %ld\n", 221 dev_err(&pdev->dev, "%s: invalid driver data %ld\n", __func__,
222 id->driver_data); 222 id->driver_data);
223 return -EINVAL; 223 return -EINVAL;
224 } 224 }