Re: [PATCH 1/4] iio:accel: call devm_iio_device_free function if common_proble fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02/14/2014 04:16 PM, Denis CIOCCA wrote:
If st_accel_common_probe function fails, the device must be freed.
Added devm_iio_device_free also on common_remove function.

When the device is allocated with devm_iio_device... you do not need to manually free the device. If probe fails the device will be freed automatically.

- Lars
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux