Skip to content

Commit 452e7f0

Browse files
committed
gpu: host1x: Do not discard .remove()
The device can be unbound from the driver via sysfs, so regardless of whether the driver is builtin or a module, its .remove() function needs to stick around. Signed-off-by: Thierry Reding <treding@nvidia.com>
1 parent 9eb9b22 commit 452e7f0

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

‎drivers/gpu/host1x/dev.c‎

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ static int host1x_probe(struct platform_device *pdev)
172172
return err;
173173
}
174174

175-
static int __exit host1x_remove(struct platform_device *pdev)
175+
static int host1x_remove(struct platform_device *pdev)
176176
{
177177
struct host1x *host = platform_get_drvdata(pdev);
178178

@@ -184,13 +184,12 @@ static int __exit host1x_remove(struct platform_device *pdev)
184184
}
185185

186186
static struct platform_driver tegra_host1x_driver = {
187-
.probe = host1x_probe,
188-
.remove = __exit_p(host1x_remove),
189187
.driver = {
190-
.owner = THIS_MODULE,
191188
.name = "tegra-host1x",
192189
.of_match_table = host1x_of_match,
193190
},
191+
.probe = host1x_probe,
192+
.remove = host1x_remove,
194193
};
195194

196195
static int __init tegra_host1x_init(void)

0 commit comments

Comments
 (0)