From: Enric Balletbo i Serra <enric.balletbo@collabora.com>
To: Alexandre Belloni <alexandre.belloni@bootlin.com>,
linux-rtc@vger.kernel.org
Cc: Benson Leung <bleung@chromium.org>,
Guenter Roeck <groeck@chromium.org>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 1/2] rtc: cros-ec: remove superfluous error message
Date: Tue, 22 Oct 2019 09:48:46 +0200 [thread overview]
Message-ID: <00ed2977-3627-16ca-6a01-db263534a071@collabora.com> (raw)
In-Reply-To: <20191016201414.30934-1-alexandre.belloni@bootlin.com>
Hi Alexandre,
On 16/10/19 22:14, Alexandre Belloni wrote:
> The RTC core now has error messages in case of registration failure, there
> is no need to have other messages in the drivers.
>
> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
That makes totally sense for me.
Reviewed-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
> ---
> drivers/rtc/rtc-cros-ec.c | 7 ++-----
> 1 file changed, 2 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/rtc/rtc-cros-ec.c b/drivers/rtc/rtc-cros-ec.c
> index 6909e01936d9..da209d00731e 100644
> --- a/drivers/rtc/rtc-cros-ec.c
> +++ b/drivers/rtc/rtc-cros-ec.c
> @@ -351,11 +351,8 @@ static int cros_ec_rtc_probe(struct platform_device *pdev)
> cros_ec_rtc->rtc = devm_rtc_device_register(&pdev->dev, DRV_NAME,
> &cros_ec_rtc_ops,
> THIS_MODULE);
> - if (IS_ERR(cros_ec_rtc->rtc)) {
> - ret = PTR_ERR(cros_ec_rtc->rtc);
> - dev_err(&pdev->dev, "failed to register rtc device\n");
> - return ret;
> - }
> + if (IS_ERR(cros_ec_rtc->rtc))
> + return PTR_ERR(cros_ec_rtc->rtc);
>
> /* Get RTC events from the EC. */
> cros_ec_rtc->notifier.notifier_call = cros_ec_rtc_event;
>
prev parent reply other threads:[~2019-10-22 7:48 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-16 20:14 [PATCH 1/2] rtc: cros-ec: remove superfluous error message Alexandre Belloni
2019-10-16 20:14 ` [PATCH 2/2] rtc: cros-ec: let the core handle rtc range Alexandre Belloni
2019-10-22 7:50 ` Enric Balletbo i Serra
2019-10-22 7:48 ` Enric Balletbo i Serra [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=00ed2977-3627-16ca-6a01-db263534a071@collabora.com \
--to=enric.balletbo@collabora.com \
--cc=alexandre.belloni@bootlin.com \
--cc=bleung@chromium.org \
--cc=groeck@chromium.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rtc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).