From 960227799f69a2b4e8a38f58c35136ce876b9696 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Sat, 24 Aug 2013 14:06:47 -0600 Subject: [PATCH] SAMA5D3x-EK: Fix some backward conditional compilation --- configs/sama5d3x-ek/src/sam_usb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/sama5d3x-ek/src/sam_usb.c b/configs/sama5d3x-ek/src/sam_usb.c index b8cc73d21e..22083b1597 100644 --- a/configs/sama5d3x-ek/src/sam_usb.c +++ b/configs/sama5d3x-ek/src/sam_usb.c @@ -393,7 +393,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable) switch (rhport) { case SAM_RHPORT1: -#ifdef CONFIG_SAMA5_UHPHS_RHPORT1 +#ifndef CONFIG_SAMA5_UHPHS_RHPORT1 udbg("ERROR: RHPort1 is not available in this configuration\n"); return; #else @@ -402,7 +402,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable) #endif case SAM_RHPORT2: -#ifdef CONFIG_SAMA5_UHPHS_RHPORT2 +#ifndef CONFIG_SAMA5_UHPHS_RHPORT2 udbg("ERROR: RHPort2 is not available in this configuration\n"); return; #else @@ -411,7 +411,7 @@ void sam_usbhost_vbusdrive(int rhport, bool enable) #endif case SAM_RHPORT3: -#ifdef CONFIG_SAMA5_UHPHS_RHPORT3 +#ifndef CONFIG_SAMA5_UHPHS_RHPORT3 udbg("ERROR: RHPort3 is not available in this configuration\n"); return; #else