diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-11-08 10:48:14 -0500 |
---|---|---|
committer | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2018-12-07 09:54:16 -0500 |
commit | c086bea543023329f3676492749f64914d0cf69f (patch) | |
tree | 6a41c78e47a992984d0e9d31f164678140260691 /drivers/gpio/gpio-ich.c | |
parent | ff4709b44cc0755ce7af4c7b3a18580f388b3bff (diff) |
gpio: ich: Convert pr_<level> to dev_<level>
Instead of customized pr_<level> format use unified dev_<level> output.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/gpio/gpio-ich.c')
-rw-r--r-- | drivers/gpio/gpio-ich.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/gpio/gpio-ich.c b/drivers/gpio/gpio-ich.c index de88a45c2e7c..6af651619926 100644 --- a/drivers/gpio/gpio-ich.c +++ b/drivers/gpio/gpio-ich.c | |||
@@ -18,7 +18,6 @@ | |||
18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. | 18 | * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
22 | 21 | ||
23 | #include <linux/ioport.h> | 22 | #include <linux/ioport.h> |
24 | #include <linux/module.h> | 23 | #include <linux/module.h> |
@@ -457,13 +456,13 @@ static int ichx_gpio_probe(struct platform_device *pdev) | |||
457 | 456 | ||
458 | res_pm = platform_get_resource(pdev, IORESOURCE_IO, ICH_RES_GPE0); | 457 | res_pm = platform_get_resource(pdev, IORESOURCE_IO, ICH_RES_GPE0); |
459 | if (!res_pm) { | 458 | if (!res_pm) { |
460 | pr_warn("ACPI BAR is unavailable, GPI 0 - 15 unavailable\n"); | 459 | dev_warn(dev, "ACPI BAR is unavailable, GPI 0 - 15 unavailable\n"); |
461 | goto init; | 460 | goto init; |
462 | } | 461 | } |
463 | 462 | ||
464 | if (!devm_request_region(dev, res_pm->start, resource_size(res_pm), | 463 | if (!devm_request_region(dev, res_pm->start, resource_size(res_pm), |
465 | pdev->name)) { | 464 | pdev->name)) { |
466 | pr_warn("ACPI BAR is busy, GPI 0 - 15 unavailable\n"); | 465 | dev_warn(dev, "ACPI BAR is busy, GPI 0 - 15 unavailable\n"); |
467 | goto init; | 466 | goto init; |
468 | } | 467 | } |
469 | 468 | ||
@@ -473,12 +472,12 @@ init: | |||
473 | ichx_gpiolib_setup(&ichx_priv.chip); | 472 | ichx_gpiolib_setup(&ichx_priv.chip); |
474 | err = gpiochip_add_data(&ichx_priv.chip, NULL); | 473 | err = gpiochip_add_data(&ichx_priv.chip, NULL); |
475 | if (err) { | 474 | if (err) { |
476 | pr_err("Failed to register GPIOs\n"); | 475 | dev_err(dev, "Failed to register GPIOs\n"); |
477 | return err; | 476 | return err; |
478 | } | 477 | } |
479 | 478 | ||
480 | pr_info("GPIO from %d to %d on %s\n", ichx_priv.chip.base, | 479 | dev_info(dev, "GPIO from %d to %d\n", ichx_priv.chip.base, |
481 | ichx_priv.chip.base + ichx_priv.chip.ngpio - 1, DRV_NAME); | 480 | ichx_priv.chip.base + ichx_priv.chip.ngpio - 1); |
482 | 481 | ||
483 | return 0; | 482 | return 0; |
484 | } | 483 | } |