]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: iio: adc: drop owner assignment from platform_drivers
authorWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:37 +0000 (16:21 +0200)
committerWolfram Sang <wsa@the-dreams.de>
Mon, 20 Oct 2014 14:21:37 +0000 (16:21 +0200)
A platform_driver does not need to set an owner, it will be populated by the
driver core.

Signed-off-by: Wolfram Sang <wsa@the-dreams.de>
drivers/staging/iio/adc/ad7606_par.c
drivers/staging/iio/adc/lpc32xx_adc.c
drivers/staging/iio/adc/mxs-lradc.c
drivers/staging/iio/adc/spear_adc.c

index 7511839ba94e9ec538efa54178f0cd31aa71482f..9e24b4d4455f2ed2ed49c485377c27e3fde20c85 100644 (file)
@@ -141,7 +141,6 @@ static struct platform_driver ad7606_driver = {
        .id_table = ad7606_driver_ids,
        .driver = {
                .name    = "ad7606",
-               .owner  = THIS_MODULE,
                .pm    = AD7606_PAR_PM_OPS,
        },
 };
index a876ce7553517523b14428b101e4fc77b25fe234..4708e9a4163385ac8519d48b7bf0e0c86474ac1a 100644 (file)
@@ -204,7 +204,6 @@ static struct platform_driver lpc32xx_adc_driver = {
        .probe          = lpc32xx_adc_probe,
        .driver         = {
                .name   = MOD_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(lpc32xx_adc_match),
        },
 };
index 32a19264a170ce7290cc44c42ea77a5e15a6d5dd..61a16c2726ead4a8100e2dde39cb46fadf42c1a8 100644 (file)
@@ -1664,7 +1664,6 @@ static int mxs_lradc_remove(struct platform_device *pdev)
 static struct platform_driver mxs_lradc_driver = {
        .driver = {
                .name   = DRIVER_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = mxs_lradc_dt_ids,
        },
        .probe  = mxs_lradc_probe,
index c5492ba50751d3b9c415e15d4e43f5fed277ca58..750697832b9649b4936a89551d58a02e921ed189 100644 (file)
@@ -389,7 +389,6 @@ static struct platform_driver spear_adc_driver = {
        .remove         = spear_adc_remove,
        .driver         = {
                .name   = SPEAR_ADC_MOD_NAME,
-               .owner  = THIS_MODULE,
                .of_match_table = of_match_ptr(spear_adc_dt_ids),
        },
 };