All of lore.kernel.org
 help / color / mirror / Atom feed
From: LABBE Corentin <clabbe.montjoie@gmail.com>
To: Josef Gajdusek <atx@atx.name>
Cc: linux-kernel@vger.kernel.org, linux-sunxi@googlegroups.com
Subject: Re: [linux-sunxi] [PATCH v2 2/5] clk: sunxi: Add driver for the H3 THS clock
Date: Mon, 23 Nov 2015 10:16:18 +0100	[thread overview]
Message-ID: <20151123091618.GA19570@Red> (raw)
In-Reply-To: <077fddc9c8d41d4cf55b1dd1c7180c4adee0fce4.1448263428.git.atx@atx.name>

On Mon, Nov 23, 2015 at 09:02:49AM +0100, Josef Gajdusek wrote:
> This patch adds a driver for the THS clock which is present on the
> Allwinner H3.
> 
> Signed-off-by: Josef Gajdusek <atx@atx.name>
> ---

Hello
Just a minor comment below.

> +static void __init sun8i_h3_ths_clk_setup(struct device_node *node)
> +{
> +	struct clk *clk;
> +	struct clk_gate *gate;
> +	struct clk_divider *div;
> +	const char *parent;
> +	const char *clk_name = node->name;
> +	void __iomem *reg;
> +	int err;
> +
> +	reg = of_io_request_and_map(node, 0, of_node_full_name(node));
> +
> +	if (IS_ERR(reg))
> +		return;
> +
> +	gate = kzalloc(sizeof(*gate), GFP_KERNEL);
> +	if (!gate)
> +		goto err_unmap;
> +
> +	div = kzalloc(sizeof(*gate), GFP_KERNEL);
copy/paste error, you mean sizeof(*div) ?

> +	if (!div)
> +		goto err_gate_free;
> +
> +	of_property_read_string(node, "clock-output-names", &clk_name);

Regards

  reply	other threads:[~2015-11-23  9:16 UTC|newest]

Thread overview: 71+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23  8:02 [PATCH v2 0/5] sunxi: THS support Josef Gajdusek
2015-11-23  8:02 ` Josef Gajdusek
2015-11-23  8:02 ` Josef Gajdusek
2015-11-23  8:02 ` [PATCH v2 1/5] ARM: dts: sun8i: Add SID node Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23 12:43   ` Maxime Ripard
2015-11-23 12:43     ` Maxime Ripard
2015-11-23 12:43     ` Maxime Ripard
2015-11-24  3:13     ` Chen-Yu Tsai
2015-11-24  3:13       ` Chen-Yu Tsai
2015-11-24  3:13       ` Chen-Yu Tsai
2015-11-24  3:24       ` Sugar Wu
2015-11-24  3:24         ` Sugar Wu
2015-11-24  6:38         ` Maxime Ripard
2015-11-24  6:38           ` Maxime Ripard
2015-11-24  6:38           ` Maxime Ripard
2015-11-24  6:38       ` Maxime Ripard
2015-11-24  6:38         ` Maxime Ripard
2015-11-24  6:42         ` Chen-Yu Tsai
2015-11-24  6:42           ` Chen-Yu Tsai
2015-11-24  7:26           ` Maxime Ripard
2015-11-24  7:26             ` Maxime Ripard
2015-11-24  7:26             ` Maxime Ripard
2015-11-24  6:51     ` Sugar Wu
2015-11-24  6:51       ` Sugar Wu
2015-11-24  9:32       ` [linux-sunxi] " Maxime Ripard
2015-11-24  9:32         ` Maxime Ripard
2015-11-24  9:32         ` Maxime Ripard
2015-11-25  1:22         ` [linux-sunxi] " Shuge
2015-11-25  1:22           ` Shuge
2015-11-25  1:22           ` Shuge
2015-12-01  8:41           ` [linux-sunxi] " Maxime Ripard
2015-12-01  8:41             ` Maxime Ripard
2015-12-01  8:41             ` Maxime Ripard
2015-11-23  8:02 ` [PATCH v2 2/5] clk: sunxi: Add driver for the H3 THS clock Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23  9:16   ` LABBE Corentin [this message]
2015-11-23 10:28   ` [linux-sunxi] " Priit Laes
2015-11-23 10:28     ` Priit Laes
2015-11-23 10:28     ` Priit Laes
2015-11-23 21:37   ` Rob Herring
2015-11-23 21:37     ` Rob Herring
2015-11-23 21:37     ` Rob Herring
2015-11-23  8:02 ` [PATCH v2 3/5] thermal: Add a driver for the Allwinner THS sensor Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-24  8:43   ` Maxime Ripard
2015-11-24  8:43     ` Maxime Ripard
2015-11-25 11:02     ` [linux-sunxi] " Josef Gajdusek
2015-11-25 11:02       ` Josef Gajdusek
2015-11-25 11:02       ` Josef Gajdusek
2015-11-25 11:02       ` Josef Gajdusek
2015-11-30 19:58       ` [linux-sunxi] " Maxime Ripard
2015-11-30 19:58         ` Maxime Ripard
2015-11-30 19:58         ` Maxime Ripard
2015-11-23  8:02 ` [PATCH v2 4/5] dt-bindings: document sun8i_ths Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23  9:47   ` Chen-Yu Tsai
2015-11-23  9:47     ` Chen-Yu Tsai
2015-11-23  9:47     ` Chen-Yu Tsai
2015-11-23 12:38   ` Maxime Ripard
2015-11-23 12:38     ` Maxime Ripard
2015-11-23 12:38     ` Maxime Ripard
2015-11-23  8:02 ` [PATCH v2 5/5] ARM: dts: sun8i: Add THS node to the H3 .dtsi Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-23  8:02   ` Josef Gajdusek
2015-11-24  8:45   ` Maxime Ripard
2015-11-24  8:45     ` Maxime Ripard

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=20151123091618.GA19570@Red \
    --to=clabbe.montjoie@gmail.com \
    --cc=atx@atx.name \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-sunxi@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.