|
@@ -550,7 +550,7 @@ static int dtl1_probe(struct pcmcia_device *link)
|
|
|
dtl1_info_t *info;
|
|
|
|
|
|
/* Create new info device */
|
|
|
- info = kzalloc(sizeof(*info), GFP_KERNEL);
|
|
|
+ info = devm_kzalloc(&link->dev, sizeof(*info), GFP_KERNEL);
|
|
|
if (!info)
|
|
|
return -ENOMEM;
|
|
|
|
|
@@ -569,7 +569,6 @@ static void dtl1_detach(struct pcmcia_device *link)
|
|
|
|
|
|
dtl1_close(info);
|
|
|
pcmcia_disable_device(link);
|
|
|
- kfree(info);
|
|
|
}
|
|
|
|
|
|
static int dtl1_confcheck(struct pcmcia_device *p_dev, void *priv_data)
|