i2c: davinci: Use struct name not type with devm_kzalloc()
authorAndrew Davis <afd@ti.com>
Mon, 15 May 2023 17:50:42 +0000 (12:50 -0500)
committerWolfram Sang <wsa@kernel.org>
Wed, 7 Jun 2023 09:28:48 +0000 (11:28 +0200)
commit1ebafd5f5caaece1d25556cfb3a8f7fcb7629550
tree68dfff91979591cb7b1179298b0932cdeda38e93
parentc3cc5c59cb16dbf14d8c52ac4df6650438613b5b
i2c: davinci: Use struct name not type with devm_kzalloc()

This reduces chance of error if the type of "dev" changes. While here
remove extra error print out, this is not usually done for memory
allocation failures.

Signed-off-by: Andrew Davis <afd@ti.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
drivers/i2c/busses/i2c-davinci.c