linux-next.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stephen Rothwell <sfr@canb.auug.org.au>
To: Greg KH <greg@kroah.com>
Cc: linux-next@vger.kernel.org, linux-kernel@vger.kernel.org,
	Bill Pemberton <wfp5p@virginia.edu>,
	"Rajanikanth H.V" <rajanikanth.hv@stericsson.com>,
	Anton Vorontsov <avorontsov@ru.mvista.com>
Subject: linux-next: manual merge of the driver-core tree with the battery tree
Date: Thu, 29 Nov 2012 15:09:33 +1100	[thread overview]
Message-ID: <20121129150933.6c47da49d1bae2cbf94f94da@canb.auug.org.au> (raw)

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

Hi Greg,

Today's linux-next merge of the driver-core tree got a conflict in
drivers/power/ab8500_btemp.c between commit bd9e8ab2d58d ("ab8500: Add
devicetree support for btemp") from the battery tree and commit
c8afa6406e60 ("power: remove use of __devinit") from the driver-core 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/power/ab8500_btemp.c
index 8135542,989b099..0000000
--- a/drivers/power/ab8500_btemp.c
+++ b/drivers/power/ab8500_btemp.c
@@@ -959,39 -960,21 +959,39 @@@ static int ab8500_btemp_remove(struct p
  	return 0;
  }
  
 +static char *supply_interface[] = {
 +	"ab8500_chargalg",
 +	"ab8500_fg",
 +};
 +
- static int __devinit ab8500_btemp_probe(struct platform_device *pdev)
+ static int ab8500_btemp_probe(struct platform_device *pdev)
  {
 +	struct device_node *np = pdev->dev.of_node;
 +	struct ab8500_btemp *di;
  	int irq, i, ret = 0;
  	u8 val;
 -	struct abx500_bm_plat_data *plat_data = pdev->dev.platform_data;
 -	struct ab8500_btemp *di;
 -
 -	if (!plat_data) {
 -		dev_err(&pdev->dev, "No platform data\n");
 -		return -EINVAL;
 -	}
  
 -	di = kzalloc(sizeof(*di), GFP_KERNEL);
 -	if (!di)
 +	di = devm_kzalloc(&pdev->dev, sizeof(*di), GFP_KERNEL);
 +	if (!di) {
 +		dev_err(&pdev->dev, "%s no mem for ab8500_btemp\n", __func__);
  		return -ENOMEM;
 +	}
 +	di->bat = pdev->mfd_cell->platform_data;
 +	if (!di->bat) {
 +		if (np) {
 +			ret = bmdevs_of_probe(&pdev->dev, np, &di->bat);
 +			if (ret) {
 +				dev_err(&pdev->dev,
 +					"failed to get battery information\n");
 +				return ret;
 +			}
 +		} else {
 +			dev_err(&pdev->dev, "missing dt node for ab8500_btemp\n");
 +			return -EINVAL;
 +		}
 +	} else {
 +		dev_info(&pdev->dev, "falling back to legacy platform data\n");
 +	}
  
  	/* get parent data */
  	di->dev = &pdev->dev;
@@@ -1096,14 -1096,12 +1096,14 @@@ free_btemp_wq
  	return ret;
  }
  
 +static const struct of_device_id ab8500_btemp_match[] = {
 +	{ .compatible = "stericsson,ab8500-btemp", },
 +	{ },
 +};
 +
  static struct platform_driver ab8500_btemp_driver = {
  	.probe = ab8500_btemp_probe,
- 	.remove = __devexit_p(ab8500_btemp_remove),
+ 	.remove = ab8500_btemp_remove,
  	.suspend = ab8500_btemp_suspend,
  	.resume = ab8500_btemp_resume,
  	.driver = {

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

             reply	other threads:[~2012-11-29  4:09 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-29  4:09 Stephen Rothwell [this message]
2012-11-29  5:20 ` linux-next: manual merge of the driver-core tree with the battery tree Greg KH
  -- strict thread matches above, loose matches on Subject: below --
2012-11-29  4:11 Stephen Rothwell
2012-11-29  5:19 ` Greg KH
2012-11-29  4:13 Stephen Rothwell
2012-11-29  5:19 ` Greg KH
2012-11-29  4:15 Stephen Rothwell
2012-11-29  5:19 ` Greg KH
2012-11-29  4:20 Stephen Rothwell
2012-11-29  5:19 ` Greg KH
2022-02-14  2:48 Stephen Rothwell
2022-02-14  5:14 ` Greg KH
2022-02-21 19:11 broonie

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=20121129150933.6c47da49d1bae2cbf94f94da@canb.auug.org.au \
    --to=sfr@canb.auug.org.au \
    --cc=avorontsov@ru.mvista.com \
    --cc=greg@kroah.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-next@vger.kernel.org \
    --cc=rajanikanth.hv@stericsson.com \
    --cc=wfp5p@virginia.edu \
    /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;
as well as URLs for NNTP newsgroup(s).