Use devm_mfd_add_devices() for adding cros-ec core MFD child devices. This reduces the need of remove callback from platform/chrome for removing the MFD child devices.
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -281,16 +281,6 @@ int cros_ec_cmd_xfer(struct cros_ec_device *ec_dev, · 280 unmodified lines | ||
| 281 | 281 | int cros_ec_cmd_xfer_status(struct cros_ec_device *ec_dev, |
| 282 | 282 | struct cros_ec_command *msg); |
| 283 | 283 | |
| 284 | −/** | |
| 285 | − * cros_ec_remove() - Remove a ChromeOS EC. | |
| 286 | − * @ec_dev: Device to register. | |
| 287 | − * | |
| 288 | − * Call this to deregister a ChromeOS EC, then clean up any private data. | |
| 289 | − * | |
| 290 | − * Return: 0 on success or negative error code. | |
| 291 | − */ | |
| 292 | −int cros_ec_remove(struct cros_ec_device *ec_dev); | |
| 293 | − | |
| 294 | 284 | /** |
| 295 | 285 | * cros_ec_register() - Register a new ChromeOS EC, using the provided info. |
| 296 | 286 | * @ec_dev: Device to register. |