tp_smapi
Antonio Olivares
olivares14031 at yahoo.com
Sat Aug 13 14:16:30 UTC 2011
> Timothy Murphy wrote:
>
> > Timothy Murphy wrote:
> >
> > Now I have downloaded the tp_smapi source from
> >
> <http://sourceforge.net/projects/tpctl/files/tp_smapi/0.40/tp_smapi-0.40.tgz/download>
> > and compiled this,
> > and I seem to get the same error on my Thinkpad T60
> > as I got when running akmods with akmod-tp_smapi :
> This compiles for me now on replacing DECLARE_MUTEX by DEFINE_SEMAPHORE
> in thinkpad_ec.c and tp_smapi.c .
> I've installed it, but have no confidence I have done the right thing.
>
> As far as I can see, DECLARE_MUTEX disappeared from the kernel
> some time ago, so I don't see how this can have compiled recently.
--
Don't worry! You have done the right thing. If you want you can write conditional code, but that is at your discretion.
http://www.mjmwired.net/kernel/Documentation/mutex-design.txt
http://fixunix.com/kernel/550131-%5Bpatch%5D-rename-declare_mutex-define_semaphore.html
I used it to fix a nonworking driver for a pctel winmodem
https://porteus.org/forum/viewtopic.php?f=39&t=37
and got a big thanks by finding these changes so that the driver could compile. The conditional code was incorporated and some warnings were fixed(code was cleaned up).
http://linmodems.technion.ac.il/pctel-linux/welcome.html
Regards,
Antonio
More information about the users
mailing list