28 Feb
2012
28 Feb
'12
5:51 p.m.
Shawn Guo wrote:
+EXPORT_SYMBOL_GPL(fsl_asoc_get_codec_dev_name);
Please use EXPORT_SYMBOL() instead of EXPORT_SYMBOL_GPL(). Freescale does not want to impose license restrictions on its customers.
Also, I think there's a bug in this function that I never got around to fixing. I think you need to call put_device() somewhere. of_find_i2c_device_by_node() calls bus_find_device(), which calls get_device(), which increments the reference count.
--
Timur Tabi
Linux kernel developer at Freescale