mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Mark Brown <broonie@kernel.org>, Liam Girdwood <lgirdwood@gmail.com>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Sudeep KarkadaNagesha <sudeep.karkadanagesha@arm.com>,
	"Rafael J. Wysocki" <rjw@sisk.pl>,
	"Rafael J. Wysocki" <rafael.j.wysocki@intel.com>
Subject: linux-next: manual merge of the regulator tree with the pm tree
Date: Tue, 27 Aug 2013 15:37:54 +1000	[thread overview]
Message-ID: <20130827153754.a28ce27a424e4cbeab503079@canb.auug.org.au> (raw)

[-- Attachment #1: Type: text/plain, Size: 1603 bytes --]

Hi all,

Today's linux-next merge of the regulator tree got a conflict in
drivers/cpufreq/cpufreq-cpu0.c between commit f837a9b5ab05 ("cpufreq:
cpufreq-cpu0: remove device tree parsing for cpu nodes") from the  tree
and commit 7d748971c0c0 ("cpufreq: cpufreq-cpu0: Use
devm_regulator_get_optional()") from the regulator tree.

I fixed it up (see below) and can carry the fix as necessary (no action
is required).

-- 
Cheers,
Stephen Rothwell                    sfr@canb.auug.org.au

diff --cc drivers/cpufreq/cpufreq-cpu0.c
index bad620e,e9dedb2..0000000
--- a/drivers/cpufreq/cpufreq-cpu0.c
+++ b/drivers/cpufreq/cpufreq-cpu0.c
@@@ -174,18 -174,30 +174,18 @@@ static struct cpufreq_driver cpu0_cpufr
  
  static int cpu0_cpufreq_probe(struct platform_device *pdev)
  {
 -	struct device_node *np, *parent;
 +	struct device_node *np;
  	int ret;
  
 -	parent = of_find_node_by_path("/cpus");
 -	if (!parent) {
 -		pr_err("failed to find OF /cpus\n");
 -		return -ENOENT;
 -	}
 -
 -	for_each_child_of_node(parent, np) {
 -		if (of_get_property(np, "operating-points", NULL))
 -			break;
 -	}
 +	cpu_dev = &pdev->dev;
  
 +	np = of_node_get(cpu_dev->of_node);
  	if (!np) {
  		pr_err("failed to find cpu0 node\n");
 -		ret = -ENOENT;
 -		goto out_put_parent;
 +		return -ENOENT;
  	}
  
- 	cpu_reg = devm_regulator_get(cpu_dev, "cpu0");
 -	cpu_dev = &pdev->dev;
 -	cpu_dev->of_node = np;
 -
+ 	cpu_reg = devm_regulator_get_optional(cpu_dev, "cpu0");
  	if (IS_ERR(cpu_reg)) {
  		/*
  		 * If cpu0 regulator supply node is present, but regulator is

[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2013-08-27  5:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-27  5:37 Stephen Rothwell [this message]
2013-08-27 21:10 ` Mark Brown

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=20130827153754.a28ce27a424e4cbeab503079@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=rafael.j.wysocki@intel.com \
    --cc=rjw@sisk.pl \
    --cc=sudeep.karkadanagesha@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®