Skip to content
Snippets Groups Projects
Unverified Commit 1e794e71 authored by Yongxin Liu's avatar Yongxin Liu Committed by Christian Ehrhardt
Browse files

usertools: fix binding built-in kernel driver


[ upstream commit 7a016af4 ]

A driver can be loaded as a dynamic module or a built-in module.
In commit 681a6728 ("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: 681a6728 ("usertools: check if module is loaded before binding")

Signed-off-by: default avatarYongxin Liu <yongxin.liu@windriver.com>
Reviewed-by: default avatarAnatoly Burakov <anatoly.burakov@intel.com>
parent 326840f1
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment