I've got understood it already. Thanks.
At the begining I think that It's an driver job to free it, I've forgot
that this pnp_devs registered in several lists of PnP layer.
>
> > #endif
> > #ifdef CONFIG_PM
> > if (chip->pm_dev)
> > pm_unregister(chip->pm_dev);
> > #endif
> > if (chip->irq >= 0)
> > free_irq(chip->irq, (void *)chip);
> > if (chip->res_port) {
> > release_resource(chip->res_port);
> > kfree_nocheck(chip->res_port);
> > }
> > snd_magic_kfree(chip);
> > return 0;
> > }
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/