Searched hist:"2340 dc15f05f595688ae10f6512cef5ad51476d3" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | output.c | diff 2340dc15f05f595688ae10f6512cef5ad51476d3 Wed Apr 08 13:01:00 CDT 2020 Thierry Reding <treding@nvidia.com> drm/tegra: Properly reference count the DDC I2C adapter
Use the of_get_i2c_adapter_by_node(), which is similar to the existing call to of_find_i2c_adapter_by_node() except that it also takes a reference to the owner module of the I2C adapter. In order to properly balance this out, call i2c_put_adapter() to release the reference to the I2C adapter and its owner module.
For the special case where the DDC comes from the DPAUX, care must be taken to perform the same steps (i.e. get_device() and module_get()) so that the reference counts are all balanced.
Signed-off-by: Thierry Reding <treding@nvidia.com>
|
H A D | sor.c | diff 2340dc15f05f595688ae10f6512cef5ad51476d3 Wed Apr 08 13:01:00 CDT 2020 Thierry Reding <treding@nvidia.com> drm/tegra: Properly reference count the DDC I2C adapter
Use the of_get_i2c_adapter_by_node(), which is similar to the existing call to of_find_i2c_adapter_by_node() except that it also takes a reference to the owner module of the I2C adapter. In order to properly balance this out, call i2c_put_adapter() to release the reference to the I2C adapter and its owner module.
For the special case where the DDC comes from the DPAUX, care must be taken to perform the same steps (i.e. get_device() and module_get()) so that the reference counts are all balanced.
Signed-off-by: Thierry Reding <treding@nvidia.com>
|