Required by "use /sys/module/ rather than parsing legacy /proc/modules"
commit8d16e07b2027466c460143b049a305bb9107ac04
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Fri, 23 Jan 2009 06:24:29 +0000 (23 01:24 -0500)
committerJon Masters <jcm@jonmasters.org>
Fri, 23 Jan 2009 06:24:29 +0000 (23 01:24 -0500)
tree461d4f5b9330094da34b220073dcf1cbac99015f
parent44d7ac4f9f61db23a8d9feb74d31a0e97df7c6a5
Required by "use /sys/module/ rather than parsing legacy /proc/modules"

refcnt is only supported when CONFIG_MODULE_UNLOAD=y.

The correct behaviour is to attempt to remove the module;
it should return an error which we can then print.
This is what the original tests require, and the previous code did.

Signed-off-by: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
Signed-off-by: Jon Masters <jcm@jonmasters.org>
modprobe.c