* [PATCH] [PATCH v2] power:supply:88pm860x_battery:remove redundant dev_err message
@ 2020-04-06 5:07 Tang Bin
2020-04-13 23:04 ` Sebastian Reichel
0 siblings, 1 reply; 3+ messages in thread
From: Tang Bin @ 2020-04-06 5:07 UTC (permalink / raw)
To: sre; +Cc: linux-pm, linux-kernel, Tang Bin
In the pm860x_battery_probe(),when get irq failed, the function
platform_get_irq() can log an dev_err message,so remove redundant
message here.
Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
---
Changes from v1
- changed the theme、commit message and the code,but the purpose is the same.
The original piece is:https://lore.kernel.org/linux-pm/20200402111222.15204-1-tangbin@cmss.chinamobile.com/
---
drivers/power/supply/88pm860x_battery.c | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/drivers/power/supply/88pm860x_battery.c b/drivers/power/supply/88pm860x_battery.c
index 5ca047b3f..1308f3a18 100644
--- a/drivers/power/supply/88pm860x_battery.c
+++ b/drivers/power/supply/88pm860x_battery.c
@@ -919,16 +919,12 @@ static int pm860x_battery_probe(struct platform_device *pdev)
return -ENOMEM;
info->irq_cc = platform_get_irq(pdev, 0);
- if (info->irq_cc <= 0) {
- dev_err(&pdev->dev, "No IRQ resource!\n");
+ if (info->irq_cc <= 0)
return -EINVAL;
- }
info->irq_batt = platform_get_irq(pdev, 1);
- if (info->irq_batt <= 0) {
- dev_err(&pdev->dev, "No IRQ resource!\n");
+ if (info->irq_batt <= 0)
return -EINVAL;
- }
info->chip = chip;
info->i2c =
--
2.20.1.windows.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] [PATCH v2] power:supply:88pm860x_battery:remove redundant dev_err message
2020-04-06 5:07 [PATCH] [PATCH v2] power:supply:88pm860x_battery:remove redundant dev_err message Tang Bin
@ 2020-04-13 23:04 ` Sebastian Reichel
2020-04-14 7:08 ` [PATCH] [PATCH v2] power:supply:88pm860x_battery:removeredundant " Tang Bin
0 siblings, 1 reply; 3+ messages in thread
From: Sebastian Reichel @ 2020-04-13 23:04 UTC (permalink / raw)
To: Tang Bin; +Cc: linux-pm, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]
Hi,
On Mon, Apr 06, 2020 at 01:07:57PM +0800, Tang Bin wrote:
> In the pm860x_battery_probe(),when get irq failed, the function
> platform_get_irq() can log an dev_err message,so remove redundant
> message here.
>
> Signed-off-by: Tang Bin <tangbin@cmss.chinamobile.com>
> ---
Thanks, queued.
-- Sebastian
> Changes from v1
> - changed the theme、commit message and the code,but the purpose is the same.
> The original piece is:https://lore.kernel.org/linux-pm/20200402111222.15204-1-tangbin@cmss.chinamobile.com/
> ---
> drivers/power/supply/88pm860x_battery.c | 8 ++------
> 1 file changed, 2 insertions(+), 6 deletions(-)
>
> diff --git a/drivers/power/supply/88pm860x_battery.c b/drivers/power/supply/88pm860x_battery.c
> index 5ca047b3f..1308f3a18 100644
> --- a/drivers/power/supply/88pm860x_battery.c
> +++ b/drivers/power/supply/88pm860x_battery.c
> @@ -919,16 +919,12 @@ static int pm860x_battery_probe(struct platform_device *pdev)
> return -ENOMEM;
>
> info->irq_cc = platform_get_irq(pdev, 0);
> - if (info->irq_cc <= 0) {
> - dev_err(&pdev->dev, "No IRQ resource!\n");
> + if (info->irq_cc <= 0)
> return -EINVAL;
> - }
>
> info->irq_batt = platform_get_irq(pdev, 1);
> - if (info->irq_batt <= 0) {
> - dev_err(&pdev->dev, "No IRQ resource!\n");
> + if (info->irq_batt <= 0)
> return -EINVAL;
> - }
>
> info->chip = chip;
> info->i2c =
> --
> 2.20.1.windows.1
>
>
>
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] [PATCH v2] power:supply:88pm860x_battery:removeredundant dev_err message
2020-04-13 23:04 ` Sebastian Reichel
@ 2020-04-14 7:08 ` Tang Bin
0 siblings, 0 replies; 3+ messages in thread
From: Tang Bin @ 2020-04-14 7:08 UTC (permalink / raw)
To: Sebastian Reichel; +Cc: linux-pm, linux-kernel
Hi Sebastian:
On 2020/4/14 7:04, Sebastian Reichel wrote:
> Thanks, queued.
Thanks!
Tang Bin
>
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-14 7:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-06 5:07 [PATCH] [PATCH v2] power:supply:88pm860x_battery:remove redundant dev_err message Tang Bin
2020-04-13 23:04 ` Sebastian Reichel
2020-04-14 7:08 ` [PATCH] [PATCH v2] power:supply:88pm860x_battery:removeredundant " Tang Bin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).