Commit 72d379ea 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 de860d52
...@@ -134,8 +134,8 @@ static int chip_gpio_request(struct gpio_chip *c, unsigned offset) ...@@ -134,8 +134,8 @@ static int chip_gpio_request(struct gpio_chip *c, unsigned offset)
/* check if this pin is available */ /* check if this pin is available */
if ((mask & (1 << offset)) == 0) { if ((mask & (1 << offset)) == 0) {
printk(KERN_INFO DRV_NAME dev_info(&chip->pdev->dev,
": pin %u is not available (check mask)\n", offset); "pin %u is not available (check mask)\n", offset);
spin_unlock_irqrestore(&chip->lock, flags); spin_unlock_irqrestore(&chip->lock, flags);
return -EINVAL; return -EINVAL;
} }
...@@ -265,18 +265,15 @@ static int __init cs5535_gpio_probe(struct pci_dev *pdev, ...@@ -265,18 +265,15 @@ static int __init cs5535_gpio_probe(struct pci_dev *pdev,
mask &= ~(1 << 28); mask &= ~(1 << 28);
if (mask_orig != mask) if (mask_orig != mask)
printk(KERN_INFO DRV_NAME dev_info(&pdev->dev, "mask changed from 0x%08lX to 0x%08lX\n",
": mask changed from 0x%08lX to 0x%08lX\n",
mask_orig, mask); mask_orig, mask);
/* finally, register with the generic GPIO API */ /* finally, register with the generic GPIO API */
err = gpiochip_add(&cs5535_gpio_chip.chip); err = gpiochip_add(&cs5535_gpio_chip.chip);
if (err) { if (err)
dev_err(&pdev->dev, "failed to register gpio chip\n");
goto release_region; 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; return 0;
release_region: 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