Commit 77007f22 authored by Luis Fernando Ruiz's avatar Luis Fernando Ruiz Committed by Alessandro Rubini

lib/fdelay-init: use another naming pattern

There are 4 possible combinations for device names.

They can be in /dev or in /dev/zio according to which udev version
you run: older ones didn't create the directory.

Moreover the device name can be called "zio-fd" or just "fd" according
to which version of ZIO you run: when we backported to 2.6.24 we dropped
the leading "zio-" part because old kernels had a short limit on device
names. Unfortunatelty fine-delay is being used on 2.6.24 as well.
parent 9d862ec4
......@@ -43,6 +43,7 @@ int fdelay_init(void)
/* Look for boards in /dev: old and new pathnames: only one matches */
glob("/dev/fd-*-0-0-ctrl", 0, NULL, &glob_dev);
glob("/dev/zio/fd-*-0-0-ctrl", GLOB_APPEND, NULL, &glob_dev);
glob("/dev/zio-fd-*-0-0-ctrl", GLOB_APPEND, NULL, &glob_dev);
glob("/dev/zio/zio-fd-*-0-0-ctrl", GLOB_APPEND, NULL, &glob_dev);
/* And look in /sys as well */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment