From: Hyeongsik Min Date: Mon, 8 May 2017 07:39:38 +0000 (+0900) Subject: Fix build break on 64 bit architecture X-Git-Tag: accepted/tizen/unified/20170510.013102~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=9b5bf40c2f83fd615152523bc3bc8009fae23dbc;p=platform%2Fcore%2Fsystem%2Fperipheral-bus.git Fix build break on 64 bit architecture Change-Id: Ief79422f096a31447dc79068d1128594f4129e95 Signed-off-by: Hyeongsik Min --- diff --git a/src/interface/gpio.c b/src/interface/gpio.c index 4c9f7ae..7e689b3 100644 --- a/src/interface/gpio.c +++ b/src/interface/gpio.c @@ -326,12 +326,11 @@ int gpio_open_isr(int gpiopin) return fd; } -int gpio_close_isr(int file_hndl) +int gpio_close_isr(int fd) { - if (file_hndl == (int)NULL) - return -EINVAL; + if (fd <= 0) return -EINVAL; - close(file_hndl); + close(fd); return 0; }