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:
Sudip Mukherjee
2019-02-13 08:47:06 +00:00
committed by Greg Kroah-Hartman
parent bde4a19fc0
commit 1aec421120
4 changed files with 54 additions and 3 deletions

View File

@@ -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);
}