media: MAINTAINERS: Add Hans de Goede as OV2680 sensor driver maintainer
[platform/kernel/linux-starfive.git] / drivers / spmi / spmi.c
index 7355153..7313d4c 100644 (file)
@@ -350,7 +350,8 @@ static void spmi_drv_remove(struct device *dev)
        const struct spmi_driver *sdrv = to_spmi_driver(dev->driver);
 
        pm_runtime_get_sync(dev);
-       sdrv->remove(to_spmi_device(dev));
+       if (sdrv->remove)
+               sdrv->remove(to_spmi_device(dev));
        pm_runtime_put_noidle(dev);
 
        pm_runtime_disable(dev);
@@ -404,7 +405,7 @@ struct spmi_device *spmi_device_from_of(struct device_node *np)
 EXPORT_SYMBOL_GPL(spmi_device_from_of);
 
 /**
- * spmi_controller_alloc() - Allocate a new SPMI device
+ * spmi_device_alloc() - Allocate a new SPMI device
  * @ctrl:      associated controller
  *
  * Caller is responsible for either calling spmi_device_add() to add the
@@ -582,8 +583,9 @@ void spmi_controller_remove(struct spmi_controller *ctrl)
 EXPORT_SYMBOL_GPL(spmi_controller_remove);
 
 /**
- * spmi_driver_register() - Register client driver with SPMI core
+ * __spmi_driver_register() - Register client driver with SPMI core
  * @sdrv:      client driver to be associated with client-device.
+ * @owner:     module owner
  *
  * This API will register the client driver with the SPMI framework.
  * It is typically called from the driver's module-init function.