openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/sysfsutils/2.1.0-r5/sysfsutils-2.1.0/lib/sysfs_driver.c
void sysfs_close_driver(struct sysfs_driver* driver)
{
    if (driver)
    {
        if (driver->devices)
            dlist_destroy(driver->devices);
        if (driver->attrlist)
            dlist_destroy(driver->attrlist);
        if (driver->module)
            sysfs_close_module(driver->module);
        free(driver);
    }
}
/**
 * sysfs_close_driver: closes driver and deletes device lists too
 * @driver: driver to close
 */
closes driver and deletes device lists too
@driver: driver to close
closes driver and deletes device lists too @driver : driver to close
void sysfs_close_driver(struct sysfs_driver* driver)
{
    if (driver)
    {
        if (driver->devices)
            dlist_destroy(driver->devices);
        if (driver->attrlist)
            dlist_destroy(driver->attrlist);
        if (driver->module)
            sysfs_close_module(driver->module);
        free(driver);
    }
}
void sysfs_close_driver ( struct sysfs_driver * driver ) { if ( driver ) { if ( driver -> devices ) dlist_destroy ( driver -> devices ) ; if ( driver -> attrlist ) dlist_destroy ( driver -> attrlist ) ; if ( driver -> module ) sysfs_close_module ( driver -> module ) ; free ( driver ) ; } }
sysfs_close_driver: closes driver and deletes device lists too
 @driver: driver to close
sysfs_close_driver : closes driver and deletes device lists too @driver : driver to close