summaryrefslogtreecommitdiff
path: root/drivers/net/can/softing/softing_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/can/softing/softing_cs.c')
-rw-r--r--drivers/net/can/softing/softing_cs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/can/softing/softing_cs.c b/drivers/net/can/softing/softing_cs.c
index 2e93ee792373..e5c939b63fa6 100644
--- a/drivers/net/can/softing/softing_cs.c
+++ b/drivers/net/can/softing/softing_cs.c
@@ -293,7 +293,7 @@ static int softingcs_probe(struct pcmcia_device *pcmcia)
return 0;
platform_failed:
- kfree(dev);
+ platform_device_put(pdev);
mem_failed:
pcmcia_bad:
pcmcia_failed: