linux-next: manual merge of the drivers-x86 tree with Linus' tree
Hi all,
Today's linux-next merge of the drivers-x86 tree got a conflict in:
drivers/platform/x86/dell/alienware-wmi.c
between commit:
c1043cdb019e ("alienware-wmi: Fix X Series and G Series quirks")
from Linus' tree and commit:
7c605f6460e8 ("platform/x86: alienware-wmi: Improve rgb-zones group creation")
from the drivers-x86 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.
Signature · 28 lines
Cheers,
Stephen Rothwell
diff --cc drivers/platform/x86/dell/alienware-wmi.c
index 341d01d3e3e4,b4b43f3e3fd9..000000000000
--- a/drivers/platform/x86/dell/alienware-wmi.c
+++ b/drivers/platform/x86/dell/alienware-wmi.c
@@@ -694,20 -690,7 +699,10 @@@ static int alienware_zone_init(struct p
static void alienware_zone_exit(struct platform_device *dev)
{
- u8 zone;
-
+ if (!quirks->num_zones)
+ return;
+
- sysfs_remove_group(&dev->dev.kobj, &zone_attribute_group);
led_classdev_unregister(&global_led);
- if (zone_dev_attrs) {
- for (zone = 0; zone < quirks->num_zones; zone++)
- kfree(zone_dev_attrs[zone].attr.name);
- }
- kfree(zone_dev_attrs);
- kfree(zone_data);
- kfree(zone_attrs);
}
static acpi_status alienware_wmax_command(void *in_args, size_t in_size,Quoted 40 lines · Stephen Rothwell
Hi all,
Today's linux-next merge of the drivers-x86 tree got a conflict in:
drivers/platform/x86/dell/alienware-wmi.cbetween commit:
c1043cdb019e("alienware-wmi: Fix X Series and G Series quirks")from Linus' tree and commit:
7c605f6460e8("platform/x86: alienware-wmi: Improve rgb-zones group creation")from the drivers-x86 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.
Signature · 2 lines
Cheers, Stephen Rothwelldrivers/platform/x86/dell/alienware-wmi.c +0
-2@@@ -694,20 -690,7 +699,10 @@@ static int alienware_zone_init(struct pstatic void alienware_zone_exit (struct platform_device *dev) { -u8 zone; - + if (!quirks->num_zones) + return; +
drivers/platform/x86/dell/alienware-wmi.c
Quoted 10 lines
drivers/platform/x86/dell/alienware-wmi.c +0
-8-sysfs_remove_group (&dev->dev.kobj, &zone_attribute_group);led_classdev_unregister (&global_led); -if (zone_dev_attrs) { -for (zone =0 ; zone < quirks->num_zones; zone++) -kfree (zone_dev_attrs[zone].attr.name); - } -kfree (zone_dev_attrs); -kfree (zone_data); -kfree (zone_attrs); }
Thank you very much. This fix looks good to me.
~ Kurt
Quoted 2 lines
static
acpi_statusalienware_wmax_command(void*in_args,size_tin_size,