Commit fef3ebe7 authored by Andres Salomon's avatar Andres Salomon Committed by James Toy

Clean up places where we were using printk()s instead of dev_*.

Signed-off-by: default avatarAndres Salomon <dilinger@collabora.co.uk>
Cc: Tobias Mueller <Tobias_Mueller@twam.info>
Cc: Takashi Iwai <tiwai@suse.de>
Cc: Jordan Crouse <jordan@cosmicpenguin.net>
Cc: David Brownell <david-b@pacbell.net>
Cc: Alessandro Zummo <alessandro.zummo@towertech.it>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent d963ce12
......@@ -134,8 +134,8 @@ static int chip_gpio_request(struct gpio_chip *c, unsigned offset)
/* check if this pin is available */
if ((mask & (1 << offset)) == 0) {
printk(KERN_INFO DRV_NAME
": pin %u is not available (check mask)\n", offset);
dev_info(&chip->pdev->dev,
"pin %u is not available (check mask)\n", offset);
spin_unlock_irqrestore(&chip->lock, flags);
return -EINVAL;
}
......@@ -265,18 +265,15 @@ static int __init cs5535_gpio_probe(struct pci_dev *pdev,
mask &= ~(1 << 28);
if (mask_orig != mask)
printk(KERN_INFO DRV_NAME
": mask changed from 0x%08lX to 0x%08lX\n",
dev_info(&pdev->dev, "mask changed from 0x%08lX to 0x%08lX\n",
mask_orig, mask);
/* finally, register with the generic GPIO API */
err = gpiochip_add(&cs5535_gpio_chip.chip);
if (err) {
dev_err(&pdev->dev, "failed to register gpio chip\n");
if (err)
goto release_region;
}
printk(KERN_INFO DRV_NAME ": GPIO support successfully loaded.\n");
dev_info(&pdev->dev, DRV_NAME ": GPIO support successfully loaded.\n");
return 0;
release_region:
......
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