[PATCH 1/1] ARM: ux500: Match Power-On-Key MFD and DTS compatible strings

Subsystems: the rest

STALE5067d

11 messages, 4 authors, 2012-09-19 · open the first message on its own page

[PATCH 1/1] ARM: ux500: Match Power-On-Key MFD and DTS compatible strings

From: Lee Jones <hidden>
Date: 2012-08-09 15:57:26

The compatible string found in the Power-On-Key's MFD cell matches
the device name provided in the driver. Keeping this naming convention
seems like a good idea, so we're changing the one found in the DTS
file to match.

Signed-off-by: Lee Jones <redacted>
---
 arch/arm/boot/dts/dbx5x0.dtsi |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/boot/dts/dbx5x0.dtsi b/arch/arm/boot/dts/dbx5x0.dtsi
index 5106662..7d84f46 100644
--- a/arch/arm/boot/dts/dbx5x0.dtsi
+++ b/arch/arm/boot/dts/dbx5x0.dtsi
@@ -374,7 +374,7 @@
 				};
 
 				ab8500-ponkey {
-					compatible = "stericsson,ab8500-ponkey";
+					compatible = "stericsson,ab8500-poweron-key";
 					interrupts = <6 0x4
 						      7 0x4>;
 					interrupt-names = "ONKEY_DBF", "ONKEY_DBR";
-- 
1.7.9.5

[PATCH 1/1] ARM: ux500: Remove unused snowball_of_platform_devs struct

From: Lee Jones <hidden>
Date: 2012-08-09 15:57:33

This was left over during a recent clean-up which removed Device Tree
helper structs. There is no longer a requirement for it, so we can just
remove it.

Signed-off-by: Lee Jones <redacted>
---
 arch/arm/mach-ux500/board-mop500.c |    5 -----
 1 file changed, 5 deletions(-)
diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c
index a93b147..de10f8f 100644
--- a/arch/arm/mach-ux500/board-mop500.c
+++ b/arch/arm/mach-ux500/board-mop500.c
@@ -725,11 +725,6 @@ MACHINE_END
 
 #ifdef CONFIG_MACH_UX500_DT
 
-static struct platform_device *snowball_of_platform_devs[] __initdata = {
-	&snowball_led_dev,
-	&snowball_key_dev,
-};
-
 struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = {
 	/* Requires call-back bindings. */
 	OF_DEV_AUXDATA("arm,cortex-a9-pmu", 0, "arm-pmu", &db8500_pmu_platdata),
-- 
1.7.9.5

[PATCH 1/1] drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement

From: Lee Jones <hidden>
Date: 2012-08-09 15:58:04

All AB8500 devices are now registered via MFD core, so Device Tree
capability is no longer required for probing. Here we pull the DT
match table to ensure we're no longer probed during Device Tree
start-up.

CC: Alessandro Zummo <redacted>
CC: rtc-linux at googlegroups.com
Signed-off-by: Lee Jones <redacted>
---
 drivers/rtc/rtc-ab8500.c |    6 ------
 1 file changed, 6 deletions(-)
diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c
index bf3c2f6..2e5970f 100644
--- a/drivers/rtc/rtc-ab8500.c
+++ b/drivers/rtc/rtc-ab8500.c
@@ -462,16 +462,10 @@ static int __devexit ab8500_rtc_remove(struct platform_device *pdev)
 	return 0;
 }
 
-static const struct of_device_id ab8500_rtc_match[] = {
-	{ .compatible = "stericsson,ab8500-rtc", },
-	{}
-};
-
 static struct platform_driver ab8500_rtc_driver = {
 	.driver = {
 		.name = "ab8500-rtc",
 		.owner = THIS_MODULE,
-		.of_match_table = ab8500_rtc_match,
 	},
 	.probe	= ab8500_rtc_probe,
 	.remove = __devexit_p(ab8500_rtc_remove),
-- 
1.7.9.5

Re: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement

From: Linus Walleij <hidden>
Date: 2012-08-14 08:32:07

On Thu, Aug 9, 2012 at 5:57 PM, Lee Jones [off-list ref] wrote:
All AB8500 devices are now registered via MFD core, so Device Tree
capability is no longer required for probing. Here we pull the DT
match table to ensure we're no longer probed during Device Tree
start-up.

CC: Alessandro Zummo <redacted>
CC: rtc-linux at googlegroups.com
Signed-off-by: Lee Jones <redacted>
Acked-by: Linus Walleij <redacted>

Yours,
Linus Walleij

Re: [PATCH 1/1] ARM: ux500: Match Power-On-Key MFD and DTS compatible strings

From: Linus Walleij <hidden>
Date: 2012-08-14 08:32:44

On Thu, Aug 9, 2012 at 5:57 PM, Lee Jones [off-list ref] wrote:
The compatible string found in the Power-On-Key's MFD cell matches
the device name provided in the driver. Keeping this naming convention
seems like a good idea, so we're changing the one found in the DTS
file to match.

Signed-off-by: Lee Jones <redacted>
Acked-by: Linus Walleij <redacted>

Yours,
Linus Walleij

Re: [PATCH 1/1] ARM: ux500: Remove unused snowball_of_platform_devs struct

From: Linus Walleij <hidden>
Date: 2012-08-14 08:33:38

On Thu, Aug 9, 2012 at 5:57 PM, Lee Jones [off-list ref] wrote:
This was left over during a recent clean-up which removed Device Tree
helper structs. There is no longer a requirement for it, so we can just
remove it.

Signed-off-by: Lee Jones <redacted>
Acked-by: Linus Walleij <redacted>

Yours,
Linus Walleij

Re: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement

From: Lee Jones <hidden>
Date: 2012-08-31 11:08:28

On Tue, Aug 14, 2012 at 10:32:02AM +0200, Linus Walleij wrote:
On Thu, Aug 9, 2012 at 5:57 PM, Lee Jones [off-list ref] wrote:
quoted
All AB8500 devices are now registered via MFD core, so Device Tree
capability is no longer required for probing. Here we pull the DT
match table to ensure we're no longer probed during Device Tree
start-up.

CC: Alessandro Zummo <redacted>
CC: rtc-linux at googlegroups.com
Signed-off-by: Lee Jones <redacted>
Acked-by: Linus Walleij <redacted>
I'm guessing we still need Alessandro's Ack?

-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

Re: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement

From: Linus Walleij <hidden>
Date: 2012-08-31 23:27:30

On Fri, Aug 31, 2012 at 1:08 PM, Lee Jones [off-list ref] wrote:
On Tue, Aug 14, 2012 at 10:32:02AM +0200, Linus Walleij wrote:
quoted
On Thu, Aug 9, 2012 at 5:57 PM, Lee Jones [off-list ref] wrote:
quoted
All AB8500 devices are now registered via MFD core, so Device Tree
capability is no longer required for probing. Here we pull the DT
match table to ensure we're no longer probed during Device Tree
start-up.

CC: Alessandro Zummo <redacted>
CC: rtc-linux at googlegroups.com
Signed-off-by: Lee Jones <redacted>
Acked-by: Linus Walleij <redacted>
I'm guessing we still need Alessandro's Ack?
Well, usually we have Andrew Morton merging patches for RTC, so
put him on CC.

If I was the MFD maintainer I'd just merge this though, it's quite
obvious.

Sam: do you agree?

Yours,
Linus Walleij

Re: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement

From: Linus Walleij <hidden>
Date: 2012-08-31 23:28:36

On Sat, Sep 1, 2012 at 1:27 AM, Linus Walleij [off-list ref] wrote:
On Fri, Aug 31, 2012 at 1:08 PM, Lee Jones [off-list ref] wrote:
quoted
On Tue, Aug 14, 2012 at 10:32:02AM +0200, Linus Walleij wrote:
quoted
On Thu, Aug 9, 2012 at 5:57 PM, Lee Jones [off-list ref] wrote:
quoted
All AB8500 devices are now registered via MFD core, so Device Tree
capability is no longer required for probing. Here we pull the DT
match table to ensure we're no longer probed during Device Tree
start-up.

CC: Alessandro Zummo <redacted>
CC: rtc-linux at googlegroups.com
Signed-off-by: Lee Jones <redacted>
Acked-by: Linus Walleij <redacted>
I'm guessing we still need Alessandro's Ack?
Well, usually we have Andrew Morton merging patches for RTC, so
put him on CC.

If I was the MFD maintainer I'd just merge this though, it's quite
obvious.

Sam: do you agree?
Or wait, Sam was not on the To: line...

Yours,
Linus Walleij

Re: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement

From: Samuel Ortiz <hidden>
Date: 2012-09-19 16:03:11

Hi Linus,

On Sat, Sep 01, 2012 at 01:28:34AM +0200, Linus Walleij wrote:
On Sat, Sep 1, 2012 at 1:27 AM, Linus Walleij [off-list ref] wrote:
quoted
On Fri, Aug 31, 2012 at 1:08 PM, Lee Jones [off-list ref] wrote:
quoted
On Tue, Aug 14, 2012 at 10:32:02AM +0200, Linus Walleij wrote:
quoted
On Thu, Aug 9, 2012 at 5:57 PM, Lee Jones [off-list ref] wrote:
quoted
All AB8500 devices are now registered via MFD core, so Device Tree
capability is no longer required for probing. Here we pull the DT
match table to ensure we're no longer probed during Device Tree
start-up.

CC: Alessandro Zummo <redacted>
CC: rtc-linux at googlegroups.com
Signed-off-by: Lee Jones <redacted>
Acked-by: Linus Walleij <redacted>
I'm guessing we still need Alessandro's Ack?
Well, usually we have Andrew Morton merging patches for RTC, so
put him on CC.

If I was the MFD maintainer I'd just merge this though, it's quite
obvious.

Sam: do you agree?
I'd love to see the patch first :)
Could you please bounce it to me ?

Cheers,
Samuel.

-- 
Intel Open Source Technology Centre
http://oss.intel.com/

Re: [rtc-linux] [PATCH 1/1] drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement

From: Lee Jones <hidden>
Date: 2012-09-19 19:09:59

quoted
quoted
Sam: do you agree?
I'd love to see the patch first :)
Could you please bounce it to me ?
I'll help. :)

Author: Lee Jones [off-list ref]
Date:   Thu Aug 9 13:28:19 2012 +0100

    drivers/rtc/rtc-ab8500.c: Revoke Device Tree enablement
    
    All AB8500 devices are now registered via MFD core, so Device Tree
    capability is no longer required for probing. Here we pull the DT
    match table to ensure we're no longer probed during Device Tree
    start-up.
    
    CC: Alessandro Zummo [off-list ref]
    CC: rtc-linux at googlegroups.com
    Acked-by: Linus Walleij [off-list ref]
    Signed-off-by: Lee Jones [off-list ref]
diff --git a/drivers/rtc/rtc-ab8500.c b/drivers/rtc/rtc-ab8500.c
index bf3c2f6..2e5970f 100644
--- a/drivers/rtc/rtc-ab8500.c
+++ b/drivers/rtc/rtc-ab8500.c
@@ -462,16 +462,10 @@ static int __devexit ab8500_rtc_remove(struct platform_device *pdev)
   return 0;
 }
 
-static const struct of_device_id ab8500_rtc_match[] = {
-	{ .compatible = "stericsson,ab8500-rtc", },
-	{}
-};
-
 static struct platform_driver ab8500_rtc_driver = {
 	.driver = {
 		.name = "ab8500-rtc",
 		      .owner = THIS_MODULE,
-		      	     .of_match_table = ab8500_rtc_match,
 			     },
 			     .probe	= ab8500_rtc_probe,
 			     .remove = __devexit_p(ab8500_rtc_remove),
-- 
Lee Jones
Linaro ST-Ericsson Landing Team Lead
Linaro.org ? Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help