summaryrefslogtreecommitdiff
path: root/bus.c
diff options
context:
space:
mode:
authorDaniel Palmer <danieruru@gmail.com>2014-06-25 23:34:08 +0900
committerMichael J. Chudobiak <mjc@avtechpulse.com>2014-06-25 10:59:31 -0400
commit0e7fdf27654a3132c0505d37d5d5b3f4622db170 (patch)
treef8828eacfbf571c117641c89cedda6d31c2428f0 /bus.c
parentd93352aabbded3f9d67a91e057bfad64e8fc8a11 (diff)
Use a node in sysfs that only exists when the device tree is loaded.
Diffstat (limited to 'bus.c')
-rw-r--r--bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bus.c b/bus.c
index 2b6582b..51bd54b 100644
--- a/bus.c
+++ b/bus.c
@@ -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;
}