Ok, will do.
Well, once you've got the driver, you put it by just calling
module_put(device->driver->owner), but you're right, I should add one for
symmetry, and there I won't guard against the race, because if someone
would be calling the put() without a successful get(), they deserve any
Oops they get anyway;)
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer