Skip to content

Commit ffd7263

Browse files
djcampelloEnric Balletbo i Serra
authored andcommitted
platform/chrome: wilco_ec: Fix unregistration order
The unregistration should happen in the opposite order of the registration, so change it accordingly. No real issue has been noticed, but it is good practice to keep the correct unregistration order. Signed-off-by: Daniel Campello <campello@chromium.org> Signed-off-by: Enric Balletbo i Serra <enric.balletbo@collabora.com>
1 parent 11f1eab commit ffd7263

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • drivers/platform/chrome/wilco_ec

‎drivers/platform/chrome/wilco_ec/core.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,9 @@ static int wilco_ec_remove(struct platform_device *pdev)
137137
{
138138
struct wilco_ec_device *ec = platform_get_drvdata(pdev);
139139

140+
platform_device_unregister(ec->telem_pdev);
140141
platform_device_unregister(ec->charger_pdev);
141142
wilco_ec_remove_sysfs(ec);
142-
platform_device_unregister(ec->telem_pdev);
143143
platform_device_unregister(ec->rtc_pdev);
144144
if (ec->debugfs_pdev)
145145
platform_device_unregister(ec->debugfs_pdev);

0 commit comments

Comments
 (0)