From: Alexandre Belloni <alexandre.belloni@free-electrons.com>
To: Amelie Delaunay <amelie.delaunay@st.com>
Cc: Alessandro Zummo <a.zummo@towertech.it>,
Rob Herring <robh+dt@kernel.org>,
Mark Rutland <mark.rutland@arm.com>,
Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@st.com>,
rtc-linux@googlegroups.com, devicetree@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-kernel@vger.kernel.org
Subject: [rtc-linux] Re: [PATCH 2/2] rtc: stm32: add STM32H7 RTC support
Date: Wed, 5 Jul 2017 23:37:46 +0200 [thread overview]
Message-ID: <20170705213746.6hf5af57ty6wsfgs@piout.net> (raw)
In-Reply-To: <1498470689-26829-3-git-send-email-amelie.delaunay@st.com>
Hi,
This is mostly fine, even if I'm not too happy with the
s/ck_rtc/rtc_ck/.
On 26/06/2017 at 11:51:29 +0200, Amelie Delaunay wrote:
> - rtc->ck_rtc = devm_clk_get(&pdev->dev, NULL);
> - if (IS_ERR(rtc->ck_rtc)) {
> - dev_err(&pdev->dev, "no ck_rtc clock");
> - return PTR_ERR(rtc->ck_rtc);
> + match = of_match_device(stm32_rtc_of_match, &pdev->dev);
> + if (match && match->data)
> + rtc->data = (struct stm32_rtc_data *)match->data;
> + else
> + return -EINVAL;
This will never happen, you can remove that test.
--
Alexandre Belloni, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
--
You received this message because you are subscribed to "rtc-linux".
Membership options at http://groups.google.com/group/rtc-linux .
Please read http://groups.google.com/group/rtc-linux/web/checklist
before submitting a driver.
---
You received this message because you are subscribed to the Google Groups "rtc-linux" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rtc-linux+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
next prev parent reply other threads:[~2017-07-05 21:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-06-26 9:51 [rtc-linux] [PATCH 0/2] rtc: add support for STM32H7 RTC Amelie Delaunay
2017-06-26 9:51 ` [rtc-linux] [PATCH 1/2] dt-bindings: rtc: stm32: add support for STM32H7 Amelie Delaunay
2017-06-28 18:04 ` [rtc-linux] " Rob Herring
2017-06-26 9:51 ` [rtc-linux] [PATCH 2/2] rtc: stm32: add STM32H7 RTC support Amelie Delaunay
2017-07-05 14:19 ` [rtc-linux] " Amelie DELAUNAY
2017-07-05 21:37 ` Alexandre Belloni [this message]
2017-07-06 7:33 ` Amelie DELAUNAY
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=20170705213746.6hf5af57ty6wsfgs@piout.net \
--to=alexandre.belloni@free-electrons.com \
--cc=a.zummo@towertech.it \
--cc=alexandre.torgue@st.com \
--cc=amelie.delaunay@st.com \
--cc=devicetree@vger.kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mark.rutland@arm.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=robh+dt@kernel.org \
--cc=rtc-linux@googlegroups.com \
/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