ASoC: ab8500: Remove explicit initialization of driver callbacks to NULL
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 22 Nov 2016 21:49:48 +0000 (22:49 +0100)
committerMark Brown <broonie@kernel.org>
Wed, 23 Nov 2016 12:41:58 +0000 (12:41 +0000)
Fields of structs with global storage are implicitly initialized to 0/NULL,
there is usually no need to do this explicitly.

Removing the initialization of the legacy suspend/resume callback fields
also gets the driver ready for the day when they are eventually removed.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/ab8500-codec.c

index 935ff7cb71c57ca9c458be5a032c0a9e8f190a28..312b2a11abb6a124ccf66778dec2ee7548f76486 100644 (file)
@@ -2587,8 +2587,6 @@ static struct platform_driver ab8500_codec_platform_driver = {
        },
        .probe          = ab8500_codec_driver_probe,
        .remove         = ab8500_codec_driver_remove,
-       .suspend        = NULL,
-       .resume         = NULL,
 };
 module_platform_driver(ab8500_codec_platform_driver);