linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* linux-next: manual merge of the driver-core tree with the battery tree
@ 2022-02-21 19:11 broonie
  0 siblings, 0 replies; 13+ messages in thread
From: broonie @ 2022-02-21 19:11 UTC (permalink / raw)
  To: Greg KH
  Cc: Greg Kroah-Hartman, Linus Walleij, Linux Kernel Mailing List,
	Linux Next Mailing List, Sebastian Reichel

Hi all,

Today's linux-next merge of the driver-core tree got a conflict in:

  drivers/power/supply/ab8500_chargalg.c

between commits:

  75ee3f6f0c1a0 ("power: supply: ab8500_chargalg: Drop enable/disable sysfs")
  05906f58c8225 ("power: supply: ab8500_chargalg: Drop charging step")
  d662a7df36e1e ("power: supply: ab8500: Swap max and overvoltage")

from the battery tree and commit:

  a8e223094c7a8 ("power_supply: ab8500: use default_groups in kobj_type")

from the driver-core tree.

I fixed it up (see below) and can carry the fix as necessary. This
is now fixed as far as linux-next is concerned, but any non trivial
conflicts should be mentioned to your upstream maintainer when your tree
is submitted for merging.  You may also want to consider cooperating
with the maintainer of the conflicting tree to minimise any particularly
complex conflicts.

diff --cc drivers/power/supply/ab8500_chargalg.c
index b5a3096e78a14,64a3f5bbfff14..0000000000000
--- a/drivers/power/supply/ab8500_chargalg.c
+++ b/drivers/power/supply/ab8500_chargalg.c
@@@ -254,12 -279,12 +254,6 @@@ static enum power_supply_property ab850
  	POWER_SUPPLY_PROP_HEALTH,
  };
  
--struct ab8500_chargalg_sysfs_entry {
--	struct attribute attr;
--	ssize_t (*show)(struct ab8500_chargalg *di, char *buf);
--	ssize_t (*store)(struct ab8500_chargalg *di, const char *buf, size_t length);
--};
--
  /**
   * ab8500_chargalg_safety_timer_expired() - Expiration of the safety timer
   * @timer:     pointer to the hrtimer structure

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: linux-next: manual merge of the driver-core tree with the battery tree
  2022-02-14  2:48 Stephen Rothwell
@ 2022-02-14  5:14 ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2022-02-14  5:14 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: Sebastian Reichel, Linus Walleij, Linux Kernel Mailing List,
	Linux Next Mailing List

On Mon, Feb 14, 2022 at 01:48:53PM +1100, Stephen Rothwell wrote:
> Hi all,
> 
> Today's linux-next merge of the driver-core tree got a conflict in:
> 
>   drivers/power/supply/ab8500_chargalg.c
> 
> between commits:
> 
>   05906f58c822 ("power: supply: ab8500_chargalg: Drop charging step")
>   75ee3f6f0c1a ("power: supply: ab8500_chargalg: Drop enable/disable sysfs")
> 
> from the battery tree and commit:
> 
>   a8e223094c7a ("power_supply: ab8500: use default_groups in kobj_type")
> 
> from the driver-core tree.
> 
> I fixed it up (the former removed the code modified by the latter, so
> I just did that) and can carry the fix as necessary. This is now fixed
> as far as linux-next is concerned, but any non trivial conflicts should
> be mentioned to your upstream maintainer when your tree is submitted for
> merging.  You may also want to consider cooperating with the maintainer
> of the conflicting tree to minimise any particularly complex conflicts.

Thanks, that should be fine.

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

* linux-next: manual merge of the driver-core tree with the battery tree
@ 2022-02-14  2:48 Stephen Rothwell
  2022-02-14  5:14 ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Rothwell @ 2022-02-14  2:48 UTC (permalink / raw)
  To: Greg KH, Sebastian Reichel
  Cc: Greg Kroah-Hartman, Linus Walleij, Linux Kernel Mailing List,
	Linux Next Mailing List

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

Hi all,

Today's linux-next merge of the driver-core tree got a conflict in:

  drivers/power/supply/ab8500_chargalg.c

between commits:

  05906f58c822 ("power: supply: ab8500_chargalg: Drop charging step")
  75ee3f6f0c1a ("power: supply: ab8500_chargalg: Drop enable/disable sysfs")

from the battery tree and commit:

  a8e223094c7a ("power_supply: ab8500: use default_groups in kobj_type")

from the driver-core tree.

I fixed it up (the former removed the code modified by the latter, so
I just did that) and can carry the fix as necessary. This is now fixed
as far as linux-next is concerned, but any non trivial conflicts should
be mentioned to your upstream maintainer when your tree is submitted for
merging.  You may also want to consider cooperating with the maintainer
of the conflicting tree to minimise any particularly complex conflicts.

-- 
Cheers,
Stephen Rothwell

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: linux-next: manual merge of the driver-core tree with the battery tree
  2012-11-29  4:09 Stephen Rothwell
@ 2012-11-29  5:20 ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2012-11-29  5:20 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

On Thu, Nov 29, 2012 at 03:09:33PM +1100, Stephen Rothwell wrote:
> 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).

Looks good, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: linux-next: manual merge of the driver-core tree with the battery tree
  2012-11-29  4:11 Stephen Rothwell
@ 2012-11-29  5:19 ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2012-11-29  5:19 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

On Thu, Nov 29, 2012 at 03:11:42PM +1100, Stephen Rothwell wrote:
> Hi Greg,
> 
> Today's linux-next merge of the driver-core tree got a conflict in
> drivers/power/ab8500_charger.c between commit 4aef72dbb2e8 ("ab8500: Add
> devicetree support for charger") 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).

Looks good, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: linux-next: manual merge of the driver-core tree with the battery tree
  2012-11-29  4:13 Stephen Rothwell
@ 2012-11-29  5:19 ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2012-11-29  5:19 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

On Thu, Nov 29, 2012 at 03:13:36PM +1100, Stephen Rothwell wrote:
> Hi Greg,
> 
> Today's linux-next merge of the driver-core tree got a conflict in
> drivers/power/ab8500_fg.c between commit e0f1abeba5c2 ("ab8500: Add
> devicetree support for fuelgauge") 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).

Looks good, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: linux-next: manual merge of the driver-core tree with the battery tree
  2012-11-29  4:15 Stephen Rothwell
@ 2012-11-29  5:19 ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2012-11-29  5:19 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

On Thu, Nov 29, 2012 at 03:15:58PM +1100, Stephen Rothwell wrote:
> Hi Greg,
> 
> Today's linux-next merge of the driver-core tree got a conflict in
> drivers/power/abx500_chargalg.c between commit a12810ab9fcf ("ab8500: Add
> devicetree support for chargalg") 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).

Looks good, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: linux-next: manual merge of the driver-core tree with the battery tree
  2012-11-29  4:20 Stephen Rothwell
@ 2012-11-29  5:19 ` Greg KH
  0 siblings, 0 replies; 13+ messages in thread
From: Greg KH @ 2012-11-29  5:19 UTC (permalink / raw)
  To: Stephen Rothwell
  Cc: linux-next, linux-kernel, Bill Pemberton, Qing Xu, Anton Vorontsov

On Thu, Nov 29, 2012 at 03:20:08PM +1100, Stephen Rothwell wrote:
> Hi Greg,
> 
> Today's linux-next merge of the driver-core tree got a conflict in
> drivers/power/max8925_power.c between commit eba3b670a916
> ("max8925_power: Add support for device-tree initialization") 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).

Looks good, thanks.

greg k-h

^ permalink raw reply	[flat|nested] 13+ messages in thread

* linux-next: manual merge of the driver-core tree with the battery tree
@ 2012-11-29  4:20 Stephen Rothwell
  2012-11-29  5:19 ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Rothwell @ 2012-11-29  4:20 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-next, linux-kernel, Bill Pemberton, Qing Xu, Anton Vorontsov

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

Hi Greg,

Today's linux-next merge of the driver-core tree got a conflict in
drivers/power/max8925_power.c between commit eba3b670a916
("max8925_power: Add support for device-tree initialization") 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/max8925_power.c
index b5a3ccb,1a075f1..0000000
--- a/drivers/power/max8925_power.c
+++ b/drivers/power/max8925_power.c
@@@ -427,55 -426,7 +427,55 @@@ static int max8925_deinit_charger(struc
  	return 0;
  }
  
 +#ifdef CONFIG_OF
 +static struct max8925_power_pdata *
 +max8925_power_dt_init(struct platform_device *pdev)
 +{
 +	struct device_node *nproot = pdev->dev.parent->of_node;
 +	struct device_node *np;
 +	int batt_detect;
 +	int topoff_threshold;
 +	int fast_charge;
 +	int no_temp_support;
 +	int no_insert_detect;
 +	struct max8925_power_pdata *pdata;
 +
 +	if (!nproot)
 +		return pdev->dev.platform_data;
 +
 +	np = of_find_node_by_name(nproot, "charger");
 +	if (!np) {
 +		dev_err(&pdev->dev, "failed to find charger node\n");
 +		return NULL;
 +	}
 +
 +	pdata = devm_kzalloc(&pdev->dev,
 +			sizeof(struct max8925_power_pdata),
 +			GFP_KERNEL);
 +
 +	of_property_read_u32(np, "topoff-threshold", &topoff_threshold);
 +	of_property_read_u32(np, "batt-detect", &batt_detect);
 +	of_property_read_u32(np, "fast-charge", &fast_charge);
 +	of_property_read_u32(np, "no-insert-detect", &no_insert_detect);
 +	of_property_read_u32(np, "no-temp-support", &no_temp_support);
 +
 +	pdata->batt_detect = batt_detect;
 +	pdata->fast_charge = fast_charge;
 +	pdata->topoff_threshold = topoff_threshold;
 +	pdata->no_insert_detect = no_insert_detect;
 +	pdata->no_temp_support = no_temp_support;
 +
 +	return pdata;
 +}
 +#else
 +static struct max8925_power_pdata *
 +max8925_power_dt_init(struct platform_device *pdev)
 +{
 +	return pdev->dev.platform_data;
 +}
 +#endif
 +
- static __devinit int max8925_power_probe(struct platform_device *pdev)
+ static int max8925_power_probe(struct platform_device *pdev)
  {
  	struct max8925_chip *chip = dev_get_drvdata(pdev->dev.parent);
  	struct max8925_power_pdata *pdata = NULL;

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* linux-next: manual merge of the driver-core tree with the battery tree
@ 2012-11-29  4:15 Stephen Rothwell
  2012-11-29  5:19 ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Rothwell @ 2012-11-29  4:15 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

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

Hi Greg,

Today's linux-next merge of the driver-core tree got a conflict in
drivers/power/abx500_chargalg.c between commit a12810ab9fcf ("ab8500: Add
devicetree support for chargalg") 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/abx500_chargalg.c
index dcdc439,19f2541..0000000
--- a/drivers/power/abx500_chargalg.c
+++ b/drivers/power/abx500_chargalg.c
@@@ -1799,37 -1800,15 +1799,37 @@@ static int abx500_chargalg_remove(struc
  	return 0;
  }
  
 +static char *supply_interface[] = {
 +	"ab8500_fg",
 +};
 +
- static int __devinit abx500_chargalg_probe(struct platform_device *pdev)
+ static int abx500_chargalg_probe(struct platform_device *pdev)
  {
 -	struct abx500_bm_plat_data *plat_data;
 +	struct device_node *np = pdev->dev.of_node;
 +	struct abx500_chargalg *di;
  	int ret = 0;
  
 -	struct abx500_chargalg *di =
 -		kzalloc(sizeof(struct abx500_chargalg), GFP_KERNEL);
 -	if (!di)
 +	di = devm_kzalloc(&pdev->dev, sizeof(*di), GFP_KERNEL);
 +	if (!di) {
 +		dev_err(&pdev->dev, "%s no mem for ab8500_chargalg\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_chargalg\n");
 +			return -EINVAL;
 +		}
 +	} else {
 +		dev_info(&pdev->dev, "falling back to legacy platform data\n");
 +	}
  
  	/* get device struct */
  	di->dev = &pdev->dev;
@@@ -1905,14 -1888,12 +1905,14 @@@ free_chargalg_wq
  	return ret;
  }
  
 +static const struct of_device_id ab8500_chargalg_match[] = {
 +	{ .compatible = "stericsson,ab8500-chargalg", },
 +	{ },
 +};
 +
  static struct platform_driver abx500_chargalg_driver = {
  	.probe = abx500_chargalg_probe,
- 	.remove = __devexit_p(abx500_chargalg_remove),
+ 	.remove = abx500_chargalg_remove,
  	.suspend = abx500_chargalg_suspend,
  	.resume = abx500_chargalg_resume,
  	.driver = {

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* linux-next: manual merge of the driver-core tree with the battery tree
@ 2012-11-29  4:13 Stephen Rothwell
  2012-11-29  5:19 ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Rothwell @ 2012-11-29  4:13 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

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

Hi Greg,

Today's linux-next merge of the driver-core tree got a conflict in
drivers/power/ab8500_fg.c between commit e0f1abeba5c2 ("ab8500: Add
devicetree support for fuelgauge") 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_fg.c
index ed62ef7,331dc43..0000000
--- a/drivers/power/ab8500_fg.c
+++ b/drivers/power/ab8500_fg.c
@@@ -2440,39 -2442,21 +2440,39 @@@ static struct ab8500_fg_interrupts ab85
  	{"CCEOC", ab8500_fg_cc_data_end_handler},
  };
  
 +static char *supply_interface[] = {
 +	"ab8500_chargalg",
 +	"ab8500_usb",
 +};
 +
- static int __devinit ab8500_fg_probe(struct platform_device *pdev)
+ static int ab8500_fg_probe(struct platform_device *pdev)
  {
 +	struct device_node *np = pdev->dev.of_node;
 +	struct ab8500_fg *di;
  	int i, irq;
  	int ret = 0;
 -	struct abx500_bm_plat_data *plat_data = pdev->dev.platform_data;
 -	struct ab8500_fg *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_fg\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_fg\n");
 +			return -EINVAL;
 +		}
 +	} else {
 +		dev_info(&pdev->dev, "falling back to legacy platform data\n");
 +	}
  
  	mutex_init(&di->cc_lock);
  
@@@ -2608,14 -2609,12 +2608,14 @@@ free_inst_curr_wq
  	return ret;
  }
  
 +static const struct of_device_id ab8500_fg_match[] = {
 +	{ .compatible = "stericsson,ab8500-fg", },
 +	{ },
 +};
 +
  static struct platform_driver ab8500_fg_driver = {
  	.probe = ab8500_fg_probe,
- 	.remove = __devexit_p(ab8500_fg_remove),
+ 	.remove = ab8500_fg_remove,
  	.suspend = ab8500_fg_suspend,
  	.resume = ab8500_fg_resume,
  	.driver = {

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* linux-next: manual merge of the driver-core tree with the battery tree
@ 2012-11-29  4:11 Stephen Rothwell
  2012-11-29  5:19 ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Rothwell @ 2012-11-29  4:11 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

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

Hi Greg,

Today's linux-next merge of the driver-core tree got a conflict in
drivers/power/ab8500_charger.c between commit 4aef72dbb2e8 ("ab8500: Add
devicetree support for charger") 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_charger.c
index dddc947,7ecb8ab..0000000
--- a/drivers/power/ab8500_charger.c
+++ b/drivers/power/ab8500_charger.c
@@@ -2532,41 -2531,20 +2532,41 @@@ static int ab8500_charger_remove(struc
  	return 0;
  }
  
 +static char *supply_interface[] = {
 +	"ab8500_chargalg",
 +	"ab8500_fg",
 +	"ab8500_btemp",
 +};
 +
- static int __devinit ab8500_charger_probe(struct platform_device *pdev)
+ static int ab8500_charger_probe(struct platform_device *pdev)
  {
 -	int irq, i, charger_status, ret = 0;
 -	struct abx500_bm_plat_data *plat_data = pdev->dev.platform_data;
 +	struct device_node *np = pdev->dev.of_node;
  	struct ab8500_charger *di;
 +	int irq, i, charger_status, ret = 0;
  
 -	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_charger\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;
 +			}
 +			di->autopower_cfg = of_property_read_bool(np, "autopower_cfg");
 +		} else {
 +			dev_err(&pdev->dev, "missing dt node for ab8500_charger\n");
 +			return -EINVAL;
 +		}
 +	} else {
 +		dev_info(&pdev->dev, "falling back to legacy platform data\n");
 +		di->autopower_cfg = false;
 +	}
  
  	/* get parent data */
  	di->dev = &pdev->dev;
@@@ -2765,14 -2760,12 +2765,14 @@@ free_charger_wq
  	return ret;
  }
  
 +static const struct of_device_id ab8500_charger_match[] = {
 +	{ .compatible = "stericsson,ab8500-charger", },
 +	{ },
 +};
 +
  static struct platform_driver ab8500_charger_driver = {
  	.probe = ab8500_charger_probe,
- 	.remove = __devexit_p(ab8500_charger_remove),
+ 	.remove = ab8500_charger_remove,
  	.suspend = ab8500_charger_suspend,
  	.resume = ab8500_charger_resume,
  	.driver = {

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

* linux-next: manual merge of the driver-core tree with the battery tree
@ 2012-11-29  4:09 Stephen Rothwell
  2012-11-29  5:20 ` Greg KH
  0 siblings, 1 reply; 13+ messages in thread
From: Stephen Rothwell @ 2012-11-29  4:09 UTC (permalink / raw)
  To: Greg KH
  Cc: linux-next, linux-kernel, Bill Pemberton, Rajanikanth H.V,
	Anton Vorontsov

[-- 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 --]

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-02-21 19:11 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-21 19:11 linux-next: manual merge of the driver-core tree with the battery tree broonie
  -- strict thread matches above, loose matches on Subject: below --
2022-02-14  2:48 Stephen Rothwell
2022-02-14  5:14 ` Greg KH
2012-11-29  4:20 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:13 Stephen Rothwell
2012-11-29  5:19 ` Greg KH
2012-11-29  4:11 Stephen Rothwell
2012-11-29  5:19 ` Greg KH
2012-11-29  4:09 Stephen Rothwell
2012-11-29  5:20 ` Greg KH

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).