to_parport_dev
port = to_parport_dev(dev);
drv->detach(to_parport_dev(dev));
struct parport *port = to_parport_dev(dev);
return to_parport_dev(dev);