[source] cns3xxx: use proper macro's for ID handling

LEDE Commits lede-commits at lists.infradead.org
Tue Feb 7 02:39:16 PST 2017


nbd pushed a commit to source.git, branch master:
https://git.lede-project.org/597ea080386c736673e19fbf5dc825807e851573

commit 597ea080386c736673e19fbf5dc825807e851573
Author: Koen Vandeputte <koen.vandeputte at ncentric.com>
AuthorDate: Mon Feb 6 12:11:39 2017 +0100

    cns3xxx: use proper macro's for ID handling
    
    Compiled & tested on cns3xxx
    
    Signed-off-by: Koen Vandeputte <koen.vandeputte at ncentric.com>
---
 target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
index 4a59612..4584d54 100644
--- a/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
+++ b/target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c
@@ -297,7 +297,7 @@ static struct gpio_led_platform_data laguna_gpio_leds_data = {
 
 static struct platform_device laguna_gpio_leds_device = {
 	.name = "leds-gpio",
-	.id = -1,
+	.id = PLATFORM_DEVID_NONE,
 	.dev.platform_data = &laguna_gpio_leds_data,
 };
 
@@ -641,7 +641,7 @@ static struct resource laguna_watchdog_resources[] = {
 
 static struct platform_device laguna_watchdog = {
 	.name		= "mpcore_wdt",
-	.id		= -1,
+	.id		= PLATFORM_DEVID_NONE,
 	.num_resources	= ARRAY_SIZE(laguna_watchdog_resources),
 	.resource	= laguna_watchdog_resources,
 };
@@ -658,7 +658,7 @@ static struct pps_gpio_platform_data laguna_pps_data = {
 
 static struct platform_device laguna_pps_device = {
 	.name = "pps-gpio",
-	.id = -1,
+	.id = PLATFORM_DEVID_NONE,
 	.dev.platform_data = &laguna_pps_data,
 };
 



More information about the lede-commits mailing list