devm_ resources are freed automatically when the device is removed. The name devm_ stands for "device" and "managed".
regards, dan carpenter _______________________________________________ devel mailing list de...@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel