diff options
author | Thierry Reding <treding@nvidia.com> | 2013-09-25 12:33:31 -0400 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-10-31 04:20:07 -0400 |
commit | 452e7f0cdaf229dc9da36e7a3d36d88a4d51fb56 (patch) | |
tree | a3c076ad85ef85ddbd2dd011415ad07eab70a981 /drivers/gpu/host1x | |
parent | 9eb9b220fc7deec9022d2340346f12554a3c7f1c (diff) |
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>
Diffstat (limited to 'drivers/gpu/host1x')
-rw-r--r-- | drivers/gpu/host1x/dev.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/gpu/host1x/dev.c b/drivers/gpu/host1x/dev.c index 0f7b44c55ec7..105aa4ed665a 100644 --- a/drivers/gpu/host1x/dev.c +++ b/drivers/gpu/host1x/dev.c | |||
@@ -172,7 +172,7 @@ fail_deinit_syncpt: | |||
172 | return err; | 172 | return err; |
173 | } | 173 | } |
174 | 174 | ||
175 | static int __exit host1x_remove(struct platform_device *pdev) | 175 | static int host1x_remove(struct platform_device *pdev) |
176 | { | 176 | { |
177 | struct host1x *host = platform_get_drvdata(pdev); | 177 | struct host1x *host = platform_get_drvdata(pdev); |
178 | 178 | ||
@@ -184,13 +184,12 @@ static int __exit host1x_remove(struct platform_device *pdev) | |||
184 | } | 184 | } |
185 | 185 | ||
186 | static struct platform_driver tegra_host1x_driver = { | 186 | static struct platform_driver tegra_host1x_driver = { |
187 | .probe = host1x_probe, | ||
188 | .remove = __exit_p(host1x_remove), | ||
189 | .driver = { | 187 | .driver = { |
190 | .owner = THIS_MODULE, | ||
191 | .name = "tegra-host1x", | 188 | .name = "tegra-host1x", |
192 | .of_match_table = host1x_of_match, | 189 | .of_match_table = host1x_of_match, |
193 | }, | 190 | }, |
191 | .probe = host1x_probe, | ||
192 | .remove = host1x_remove, | ||
194 | }; | 193 | }; |
195 | 194 | ||
196 | static int __init tegra_host1x_init(void) | 195 | static int __init tegra_host1x_init(void) |