We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e8d018d + 858a566 commit 67eacd6Copy full SHA for 67eacd6
drivers/acpi/arm64/agdi.c
@@ -64,8 +64,11 @@ static int agdi_remove(struct platform_device *pdev)
64
int err, i;
65
66
err = sdei_event_disable(adata->sdei_event);
67
- if (err)
68
- return err;
+ if (err) {
+ dev_err(&pdev->dev, "Failed to disable sdei-event #%d (%pe)\n",
69
+ adata->sdei_event, ERR_PTR(err));
70
+ return 0;
71
+ }
72
73
for (i = 0; i < 3; i++) {
74
err = sdei_event_unregister(adata->sdei_event);
@@ -75,7 +78,11 @@ static int agdi_remove(struct platform_device *pdev)
75
78
schedule();
76
79
}
77
80
81
+ if (err)
82
+ dev_err(&pdev->dev, "Failed to unregister sdei-event #%d (%pe)\n",
83
84
+
85
86
87
88
static struct platform_driver agdi_driver = {
0 commit comments