power: supply: max8997-charger: Use module_platform_driver()

Replace register and unregister function calls with
module_platform_driver().

Signed-off-by: Timon Baetz <timon.baetz@protonmail.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
This commit is contained in:
Timon Baetz 2020-11-09 19:43:12 +00:00 • committed by Sebastian Reichel
commit 70bd58fff2