diff options
Diffstat (limited to 'drivers/i2c/busses/i2c-puv3.c')
-rw-r--r-- | drivers/i2c/busses/i2c-puv3.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/i2c/busses/i2c-puv3.c b/drivers/i2c/busses/i2c-puv3.c index d7c512d717a7..261d7db437e2 100644 --- a/drivers/i2c/busses/i2c-puv3.c +++ b/drivers/i2c/busses/i2c-puv3.c | |||
@@ -223,7 +223,6 @@ static int puv3_i2c_probe(struct platform_device *pdev) | |||
223 | return 0; | 223 | return 0; |
224 | 224 | ||
225 | fail_add_adapter: | 225 | fail_add_adapter: |
226 | platform_set_drvdata(pdev, NULL); | ||
227 | kfree(adapter); | 226 | kfree(adapter); |
228 | fail_nomem: | 227 | fail_nomem: |
229 | release_mem_region(mem->start, resource_size(mem)); | 228 | release_mem_region(mem->start, resource_size(mem)); |
@@ -245,7 +244,6 @@ static int puv3_i2c_remove(struct platform_device *pdev) | |||
245 | } | 244 | } |
246 | 245 | ||
247 | put_device(&pdev->dev); | 246 | put_device(&pdev->dev); |
248 | platform_set_drvdata(pdev, NULL); | ||
249 | 247 | ||
250 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); | 248 | mem = platform_get_resource(pdev, IORESOURCE_MEM, 0); |
251 | release_mem_region(mem->start, resource_size(mem)); | 249 | release_mem_region(mem->start, resource_size(mem)); |