usb2514: skip gpio script on kernels that export GPIOs themselves

This commit is contained in:
Harald Welte 2014-12-18 23:29:06 +01:00
parent eefee096cd
commit 53f89ad74d
2 changed files with 8 additions and 1 deletions

View File

@ -1,5 +1,12 @@
#!/bin/sh
# in more recent kernels the kernel is itself taking care of exporting
# the right GPIOs and setting their direction and level. We can detect
# this by checking for the below sysfs path
if [ -d /sys/devices/platform/sob-odu.0 ]; then
exit 0
fi
cd /sys/class/gpio
# !mdm1_pwr_ind

View File

@ -4,7 +4,7 @@ LICENSE = "GPLv2+"
LIC_FILES_CHKSUM = "file://${WORKDIR}/usb2514.c;beginline=1;endline=18;md5=3b8421a1c05d21add65cc20fccfa29cd"
DEPENDS += "lmsensors-apps"
PR = "r1"
PR = "r2"
SRC_URI = "file://usb2514.c \
file://gpio_usb2514 \