aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorKoen Vandeputte <koen.vandeputte@ncentric.com>2017-02-06 12:11:39 +0100
committerJo-Philipp Wich <jo@mein.io>2017-04-28 17:09:49 +0200
commit105d5b6f03647e225ce3361a818ff4303f64df24 (patch)
treee83cfed91e85e4bd9920bbd258adafc6f03efd38 /target
parent49ce6d04b0fa56facd37924003df02b4ebf14aab (diff)
downloadupstream-105d5b6f03647e225ce3361a818ff4303f64df24.tar.gz
upstream-105d5b6f03647e225ce3361a818ff4303f64df24.tar.bz2
upstream-105d5b6f03647e225ce3361a818ff4303f64df24.zip
cns3xxx: use proper macro's for ID handling
Compiled & tested on cns3xxx Signed-off-by: Koen Vandeputte <koen.vandeputte@ncentric.com>
Diffstat (limited to 'target')
-rw-r--r--target/linux/cns3xxx/files/arch/arm/mach-cns3xxx/laguna.c6
1 files 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 4a596125ab..4584d54caf 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,
};