parport: daisy: use new parport device model
Modify parport daisy driver to use the new parallel port device model. Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
bde4a19fc0
commit
1aec421120
@@ -137,11 +137,19 @@ static struct bus_type parport_bus_type = {
|
||||
|
||||
int parport_bus_init(void)
|
||||
{
|
||||
return bus_register(&parport_bus_type);
|
||||
int retval;
|
||||
|
||||
retval = bus_register(&parport_bus_type);
|
||||
if (retval)
|
||||
return retval;
|
||||
daisy_drv_init();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void parport_bus_exit(void)
|
||||
{
|
||||
daisy_drv_exit();
|
||||
bus_unregister(&parport_bus_type);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user