parport: add device-model to parport subsystem
parport subsystem starts using the device-model. Drivers using the device-model has to define devmodel as true and should register the device with parport using parport_register_dev_model(). Tested-by: Jean Delvare <jdelvare@suse.de> Tested-by: Alan Cox <gnomes@lxorguk.ukuu.org.uk> Signed-off-by: Sudip Mukherjee <sudip@vectorindia.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
208250dd4c
commit
6fa45a2268
@@ -2255,7 +2255,7 @@ out5:
|
||||
release_region(base+0x3, 5);
|
||||
release_region(base, 3);
|
||||
out4:
|
||||
parport_put_port(p);
|
||||
parport_del_port(p);
|
||||
out3:
|
||||
kfree(priv);
|
||||
out2:
|
||||
@@ -2294,7 +2294,7 @@ void parport_pc_unregister_port(struct parport *p)
|
||||
priv->dma_handle);
|
||||
#endif
|
||||
kfree(p->private_data);
|
||||
parport_put_port(p);
|
||||
parport_del_port(p);
|
||||
kfree(ops); /* hope no-one cached it */
|
||||
}
|
||||
EXPORT_SYMBOL(parport_pc_unregister_port);
|
||||
|
Reference in New Issue
Block a user