From: Sascha Hauer <s.hauer@pengutronix.de>
To: Robin van der Gracht <robin@protonic.nl>
Cc: barebox@lists.infradead.org
Subject: Re: [PATCH] clk: imx: clk-imx6ul: Use anatop_base pointer for consistency
Date: Mon, 6 Mar 2017 08:12:44 +0100 [thread overview]
Message-ID: <20170306071244.2aauk4esduxu2yop@pengutronix.de> (raw)
In-Reply-To: <20170303094749.29319-1-robin@protonic.nl>
On Fri, Mar 03, 2017 at 10:47:49AM +0100, Robin van der Gracht wrote:
> The anatop_base pointer was unused, but instead of removing it, assign
> and use it for readability like clk-imx6 and clk-imx6sx do.
>
> Signed-off-by: Robin van der Gracht <robin@protonic.nl>
> ---
> drivers/clk/imx/clk-imx6ul.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
Applied, thanks
Sascha
>
> diff --git a/drivers/clk/imx/clk-imx6ul.c b/drivers/clk/imx/clk-imx6ul.c
> index 0ca0652..f28660d 100644
> --- a/drivers/clk/imx/clk-imx6ul.c
> +++ b/drivers/clk/imx/clk-imx6ul.c
> @@ -91,6 +91,7 @@ static int imx6_ccm_probe(struct device_d *dev)
> int i;
> struct device_node *ccm_node = dev->device_node;
>
> + anatop_base = IOMEM(MX6_ANATOP_BASE_ADDR);
> iores = dev_request_mem_resource(dev, 0);
> if (IS_ERR(iores))
> return PTR_ERR(iores);
> @@ -100,8 +101,6 @@ static int imx6_ccm_probe(struct device_d *dev)
>
> clks[IMX6UL_CLK_DUMMY] = clk_fixed("dummy", 0);
>
> - base = IOMEM(MX6_ANATOP_BASE_ADDR);
> -
> clks[IMX6UL_PLL1_BYPASS_SRC] = imx_clk_mux("pll1_bypass_src", base + 0x00, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels));
> clks[IMX6UL_PLL2_BYPASS_SRC] = imx_clk_mux("pll2_bypass_src", base + 0x30, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels));
> clks[IMX6UL_PLL3_BYPASS_SRC] = imx_clk_mux("pll3_bypass_src", base + 0x10, 14, 1, pll_bypass_src_sels, ARRAY_SIZE(pll_bypass_src_sels));
> --
> 2.9.3
>
>
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
prev parent reply other threads:[~2017-03-06 7:13 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-03 9:47 Robin van der Gracht
2017-03-06 7:12 ` Sascha Hauer [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=20170306071244.2aauk4esduxu2yop@pengutronix.de \
--to=s.hauer@pengutronix.de \
--cc=barebox@lists.infradead.org \
--cc=robin@protonic.nl \
/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