]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: samsung: simplify getting OF match data
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tue, 8 Mar 2022 08:09:19 +0000 (09:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Mar 2022 12:24:28 +0000 (13:24 +0100)
commit76fa9cc534ea414dc129e78edff67c2dc76d29c4
treeebffd1445e2e791181a0f0a87a3884198dd3fd2e
parent96a5393b24589d7233a59e75614fda47416c8cc2
tty: serial: samsung: simplify getting OF match data

Simplify the code with of_device_get_match_data() and use dev_of_node()
to remove ifdef-erry.

Tested-by: Alim Akhtar <alim.akhtar@samsung.com>
Reviewed-by: Alim Akhtar <alim.akhtar@samsung.com>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20220308080919.152715-9-krzysztof.kozlowski@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c