Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
usertools: fix binding built-in kernel driver
[ upstream commit 7a016af ] A driver can be loaded as a dynamic module or a built-in module. In commit 681a672 ("usertools: check if module is loaded before binding"), the script only checks modules in /sys/module/. However, for built-in kernel driver, it only shows up in /sys/module/, if it has a version or at least one parameter. So add check for modules in /lib/modules/$(uname -r)/modules.builtin. Fixes: 681a672 ("usertools: check if module is loaded before binding") Signed-off-by: Yongxin Liu <yongxin.liu@windriver.com> Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
- Loading branch information