All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: devel@driverdev.osuosl.org, devicetree@vger.kernel.org,
	Arnd Bergmann <arnd@arndb.de>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	linux-pm@vger.kernel.org, Marc Zyngier <marc.zyngier@arm.com>,
	Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	linux-sh@vger.kernel.org,
	Magnus Damm <damm+renesas@opensource.se>,
	linux-kernel@vger.kernel.org,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Simon Horman <horms+renesas@verge.net.au>,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH/RFC 5/6] staging: board: Add support for devices with complex dependencies
Date: Fri, 3 Apr 2015 15:57:27 +0300	[thread overview]
Message-ID: <20150403125727.GT10964@mwanda> (raw)
In-Reply-To: <1428064923-24950-6-git-send-email-geert+renesas@glider.be>

On Fri, Apr 03, 2015 at 02:42:02PM +0200, Geert Uytterhoeven wrote:
> +int __init board_staging_register_clock(const struct board_staging_clk *bsc)
> +{
> +	struct clk *clk;
> +	int error;
> +
> +	pr_debug("Registering clock %s for con_id %s dev_id %s\n", bsc->clk,
> +		 bsc->con_id, bsc->dev_id);
> +	clk = clk_get(NULL, bsc->clk);
> +	if (IS_ERR(clk)) {
> +		error = PTR_ERR(clk);
> +		pr_err("Failed to get clock %s (%d)\n", bsc->clk, error);
> +		return error;
> +	}
> +
> +	error = clk_register_clkdev(clk, bsc->con_id, bsc->dev_id);
> +	if (error)
> +		pr_err("Failed to register clock %s (%d)\n", bsc->clk, error);
> +		return error;

Missing curly braces.  Also it's weird that don't we need a clk_put()
on the error patch as well as the success path?

> +
> +	clk_put(clk);
> +	return 0;
> +}


regards,
dan carpenter

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH/RFC 5/6] staging: board: Add support for devices with complex dependencies
Date: Fri, 03 Apr 2015 12:57:27 +0000	[thread overview]
Message-ID: <20150403125727.GT10964@mwanda> (raw)
In-Reply-To: <1428064923-24950-6-git-send-email-geert+renesas@glider.be>

On Fri, Apr 03, 2015 at 02:42:02PM +0200, Geert Uytterhoeven wrote:
> +int __init board_staging_register_clock(const struct board_staging_clk *bsc)
> +{
> +	struct clk *clk;
> +	int error;
> +
> +	pr_debug("Registering clock %s for con_id %s dev_id %s\n", bsc->clk,
> +		 bsc->con_id, bsc->dev_id);
> +	clk = clk_get(NULL, bsc->clk);
> +	if (IS_ERR(clk)) {
> +		error = PTR_ERR(clk);
> +		pr_err("Failed to get clock %s (%d)\n", bsc->clk, error);
> +		return error;
> +	}
> +
> +	error = clk_register_clkdev(clk, bsc->con_id, bsc->dev_id);
> +	if (error)
> +		pr_err("Failed to register clock %s (%d)\n", bsc->clk, error);
> +		return error;

Missing curly braces.  Also it's weird that don't we need a clk_put()
on the error patch as well as the success path?

> +
> +	clk_put(clk);
> +	return 0;
> +}


regards,
dan carpenter

WARNING: multiple messages have this Message-ID (diff)
From: dan.carpenter@oracle.com (Dan Carpenter)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH/RFC 5/6] staging: board: Add support for devices with complex dependencies
Date: Fri, 3 Apr 2015 15:57:27 +0300	[thread overview]
Message-ID: <20150403125727.GT10964@mwanda> (raw)
In-Reply-To: <1428064923-24950-6-git-send-email-geert+renesas@glider.be>

On Fri, Apr 03, 2015 at 02:42:02PM +0200, Geert Uytterhoeven wrote:
> +int __init board_staging_register_clock(const struct board_staging_clk *bsc)
> +{
> +	struct clk *clk;
> +	int error;
> +
> +	pr_debug("Registering clock %s for con_id %s dev_id %s\n", bsc->clk,
> +		 bsc->con_id, bsc->dev_id);
> +	clk = clk_get(NULL, bsc->clk);
> +	if (IS_ERR(clk)) {
> +		error = PTR_ERR(clk);
> +		pr_err("Failed to get clock %s (%d)\n", bsc->clk, error);
> +		return error;
> +	}
> +
> +	error = clk_register_clkdev(clk, bsc->con_id, bsc->dev_id);
> +	if (error)
> +		pr_err("Failed to register clock %s (%d)\n", bsc->clk, error);
> +		return error;

Missing curly braces.  Also it's weird that don't we need a clk_put()
on the error patch as well as the success path?

> +
> +	clk_put(clk);
> +	return 0;
> +}


regards,
dan carpenter

WARNING: multiple messages have this Message-ID (diff)
From: Dan Carpenter <dan.carpenter@oracle.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Magnus Damm <damm+renesas@opensource.se>,
	Arnd Bergmann <arnd@arndb.de>,
	Simon Horman <horms+renesas@verge.net.au>,
	Laurent Pinchart <Laurent.pinchart@ideasonboard.com>,
	Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>,
	devel@driverdev.osuosl.org, devicetree@vger.kernel.org,
	linux-pm@vger.kernel.org, Marc Zyngier <marc.zyngier@arm.com>,
	linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org,
	linux-arm-kernel@lists.infradead.org
Subject: Re: [PATCH/RFC 5/6] staging: board: Add support for devices with complex dependencies
Date: Fri, 3 Apr 2015 15:57:27 +0300	[thread overview]
Message-ID: <20150403125727.GT10964@mwanda> (raw)
In-Reply-To: <1428064923-24950-6-git-send-email-geert+renesas@glider.be>

On Fri, Apr 03, 2015 at 02:42:02PM +0200, Geert Uytterhoeven wrote:
> +int __init board_staging_register_clock(const struct board_staging_clk *bsc)
> +{
> +	struct clk *clk;
> +	int error;
> +
> +	pr_debug("Registering clock %s for con_id %s dev_id %s\n", bsc->clk,
> +		 bsc->con_id, bsc->dev_id);
> +	clk = clk_get(NULL, bsc->clk);
> +	if (IS_ERR(clk)) {
> +		error = PTR_ERR(clk);
> +		pr_err("Failed to get clock %s (%d)\n", bsc->clk, error);
> +		return error;
> +	}
> +
> +	error = clk_register_clkdev(clk, bsc->con_id, bsc->dev_id);
> +	if (error)
> +		pr_err("Failed to register clock %s (%d)\n", bsc->clk, error);
> +		return error;

Missing curly braces.  Also it's weird that don't we need a clk_put()
on the error patch as well as the success path?

> +
> +	clk_put(clk);
> +	return 0;
> +}


regards,
dan carpenter

  reply	other threads:[~2015-04-03 12:57 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-03 12:41 [PATCH/RFC 0/6] staging: board: armadillo800eva: Board staging for sh_mobile_lcdc_fb Geert Uytterhoeven
2015-04-03 12:41 ` Geert Uytterhoeven
2015-04-03 12:41 ` Geert Uytterhoeven
2015-04-03 12:41 ` Geert Uytterhoeven
2015-04-03 12:41 ` [PATCH 1/6] Revert "staging: board: disable as it breaks the build" Geert Uytterhoeven
2015-04-03 12:41   ` Geert Uytterhoeven
2015-04-03 12:41   ` Geert Uytterhoeven
2015-04-03 12:41   ` Geert Uytterhoeven
2015-04-06  0:40   ` Simon Horman
2015-04-06  0:40     ` Simon Horman
2015-04-06  0:40     ` Simon Horman
2015-04-07 13:16     ` Geert Uytterhoeven
2015-04-07 13:16       ` Geert Uytterhoeven
2015-04-07 13:16       ` Geert Uytterhoeven
2015-04-08  0:44       ` Simon Horman
2015-04-08  0:44         ` Simon Horman
2015-04-08  0:44         ` Simon Horman
2015-04-03 12:41 ` [PATCH/RFC 2/6] staging: board: Initialize staging board code earlier Geert Uytterhoeven
2015-04-03 12:41   ` Geert Uytterhoeven
2015-04-03 12:41   ` Geert Uytterhoeven
2015-04-03 12:41   ` Geert Uytterhoeven
2015-04-03 12:42 ` [PATCH/RFC 3/6] staging: board: Add support for translating hwirq to virq numbers Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-06 10:45   ` Marc Zyngier
2015-04-06 10:45     ` Marc Zyngier
2015-04-06 10:45     ` Marc Zyngier
2015-04-06 10:45     ` Marc Zyngier
2015-04-03 12:42 ` [PATCH/RFC 4/6] staging: board: kzm9d: Translate hwirq numbers " Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42 ` [PATCH/RFC 5/6] staging: board: Add support for devices with complex dependencies Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:57   ` Dan Carpenter [this message]
2015-04-03 12:57     ` Dan Carpenter
2015-04-03 12:57     ` Dan Carpenter
2015-04-03 12:57     ` Dan Carpenter
2015-04-03 13:27     ` Geert Uytterhoeven
2015-04-03 13:27       ` Geert Uytterhoeven
2015-04-03 13:27       ` Geert Uytterhoeven
2015-04-03 17:07       ` Russell King - ARM Linux
2015-04-03 17:07         ` Russell King - ARM Linux
2015-04-03 17:07         ` Russell King - ARM Linux
2015-04-03 17:04     ` Russell King - ARM Linux
2015-04-03 17:04       ` Russell King - ARM Linux
2015-04-03 17:04       ` Russell King - ARM Linux
     [not found]       ` <20150403170407.GA13898-l+eeeJia6m9vn6HldHNs0ANdhmdF6hFW@public.gmane.org>
2015-04-05  8:55         ` Geert Uytterhoeven
2015-04-05  8:55           ` Geert Uytterhoeven
2015-04-05  8:55           ` Geert Uytterhoeven
2015-04-05  8:55           ` Geert Uytterhoeven
2015-04-04 12:46   ` Laurent Pinchart
2015-04-04 12:46     ` Laurent Pinchart
2015-04-04 12:46     ` Laurent Pinchart
2015-04-05  9:00     ` Geert Uytterhoeven
2015-04-05  9:00       ` Geert Uytterhoeven
2015-04-05  9:00       ` Geert Uytterhoeven
2015-04-05  9:00       ` Geert Uytterhoeven
2015-04-05 20:06       ` Laurent Pinchart
2015-04-05 20:06         ` Laurent Pinchart
2015-04-05 20:06         ` Laurent Pinchart
2015-04-03 12:42 ` [PATCH/RFC 6/6] staging: board: armadillo800eva: Board staging for sh_mobile_lcdc_fb Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 12:42   ` Geert Uytterhoeven
2015-04-03 16:24 ` [PATCH/RFC 0/6] " Laurent Pinchart
2015-04-03 16:24   ` Laurent Pinchart
2015-04-03 16:24   ` Laurent Pinchart
2015-04-03 19:35   ` Geert Uytterhoeven
2015-04-03 19:35     ` Geert Uytterhoeven
2015-04-03 19:35     ` Geert Uytterhoeven
2015-04-03 19:35     ` Geert Uytterhoeven
2015-04-06 10:23 ` Marc Zyngier
2015-04-06 10:23   ` Marc Zyngier
2015-04-06 10:23   ` Marc Zyngier
2015-04-06 10:23   ` [PATCH/RFC 0/6] staging: board: armadillo800eva: Board staging for =?UTF-8?Q?sh=5Fmobile=5Flcdc Marc Zyngier

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=20150403125727.GT10964@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=Laurent.pinchart@ideasonboard.com \
    --cc=arnd@arndb.de \
    --cc=damm+renesas@opensource.se \
    --cc=devel@driverdev.osuosl.org \
    --cc=devicetree@vger.kernel.org \
    --cc=geert+renesas@glider.be \
    --cc=gregkh@linuxfoundation.org \
    --cc=horms+renesas@verge.net.au \
    --cc=kuninori.morimoto.gx@renesas.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-pm@vger.kernel.org \
    --cc=linux-sh@vger.kernel.org \
    --cc=marc.zyngier@arm.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.