driver/proc: add compat functions only if kernel < 2.6.25

I remember that Paul, wrote he made a fix by him self, but I also need
this, so I fixed it by myself.