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>
This commit is contained in:
parent
9eb9b220fc
commit
452e7f0cda
|
@ -172,7 +172,7 @@ static int host1x_probe(struct platform_device *pdev)
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __exit host1x_remove(struct platform_device *pdev)
|
static int host1x_remove(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct host1x *host = platform_get_drvdata(pdev);
|
struct host1x *host = platform_get_drvdata(pdev);
|
||||||
|
|
||||||
|
@ -184,13 +184,12 @@ static int __exit host1x_remove(struct platform_device *pdev)
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct platform_driver tegra_host1x_driver = {
|
static struct platform_driver tegra_host1x_driver = {
|
||||||
.probe = host1x_probe,
|
|
||||||
.remove = __exit_p(host1x_remove),
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.owner = THIS_MODULE,
|
|
||||||
.name = "tegra-host1x",
|
.name = "tegra-host1x",
|
||||||
.of_match_table = host1x_of_match,
|
.of_match_table = host1x_of_match,
|
||||||
},
|
},
|
||||||
|
.probe = host1x_probe,
|
||||||
|
.remove = host1x_remove,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int __init tegra_host1x_init(void)
|
static int __init tegra_host1x_init(void)
|
||||||
|
|
Loading…
Reference in New Issue