diff options
author | Daniel Palmer <danieruru@gmail.com> | 2014-06-25 23:34:08 +0900 |
---|---|---|
committer | Daniel Palmer <danieruru@gmail.com> | 2014-06-25 23:34:08 +0900 |
commit | 51652e84de406413faf7f4f43d0e5bb22b64a054 (patch) | |
tree | 221ee29d27937d0445a3b7e55a92b5cbe44fa703 | |
parent | 1b9e4b2d49283eee706bc58e42c4ac30cff4017f (diff) |
Use a node in sysfs that only exists when the device tree is loaded.pinmuxindt
-rw-r--r-- | bus.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -61,7 +61,7 @@ static int devmemfd = -1; static bool util_isbeaglebone() { - int fd = open("/sys/kernel/debug/omap_mux/board/core", O_RDONLY); + int fd = open("/sys/devices/avtech.9/modalias", O_RDONLY); close(fd); return fd > -1; } |