OSDN Git Service

tty: serial: samsung_tty: Use devm_ioremap_resource
authorHector Martin <marcan@marcan.st>
Thu, 4 Mar 2021 21:38:57 +0000 (06:38 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:10 +0000 (09:34 +0100)
commit0906db90c722c9fa3d41e69c02ee962b8304da21
tree9ff73e94af7bcca09661424310fa38a666187877
parentad5613b98a48e71a13fdb945593c7e485ed49b55
tty: serial: samsung_tty: Use devm_ioremap_resource

This picks up the non-posted I/O mode needed for Apple platforms to
work properly.

This removes the request/release functions, which are no longer
necessary, since devm_ioremap_resource takes care of that already. Most
other drivers already do it this way, anyway.

Signed-off-by: Hector Martin <marcan@marcan.st>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Tested-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Link: https://lore.kernel.org/r/20210304213902.83903-23-marcan@marcan.st
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/samsung_tty.c