Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 033cbf82 in mainline for uspace/lib/drv/generic/driver.c


Ignore:
Timestamp:
2011-04-08T22:29:11Z (11 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial
Children:
3ad7b1c
Parents:
8436590
Message:

Handle failure to register with device manager.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r8436590 r033cbf82  
    655655int ddf_driver_main(driver_t *drv)
    656656{
     657        int rc;
     658
    657659        /*
    658660         * Remember the driver structure - driver_ops will be called by generic
     
    668670       
    669671        /*
    670          * Register driver by device manager with generic handler for incoming
    671          * connections.
     672         * Register driver with device manager using generic handler for
     673         * incoming connections.
    672674         */
    673         devman_driver_register(driver->name, driver_connection);
     675        rc = devman_driver_register(driver->name, driver_connection);
     676        if (rc != EOK) {
     677                printf("Error: Failed to register driver with device manager.\n");
     678                return 1;
     679        }
    674680       
    675681        async_manager();
Note: See TracChangeset for help on using the changeset viewer.