i2c: piix4: Move port I/O region request/release code into functions
authorTerry Bowman <terry.bowman@amd.com>
Wed, 9 Feb 2022 17:27:11 +0000 (11:27 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 25 May 2022 07:57:22 +0000 (09:57 +0200)
commitbdf9bed734c3981acd12e3c3e2825ae87dd44f6b
treee9f87b51d35d55d8903ed66a74555033225530e6
parent5166f933da0e35efa5b241bd3dc7a787daba1d6e
i2c: piix4: Move port I/O region request/release code into functions

commit a3325d225b00889f4b7fdb25d83033cae1048a92 upstream.

Move duplicated region request and release code into a function. Move is
in preparation for following MMIO changes.

Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Reviewed-by: Jean Delvare <jdelvare@suse.de>
[wsa: added missing curly brace]
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Cc: Mario Limonciello <Mario.Limonciello@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/i2c/busses/i2c-piix4.c