2014-11-08 12:13:00

by Manish Badarkhe

[permalink] [raw]
Subject: [PATCH] regulator: tps65218: Remove '.owner' field

Remove '.owner' field of driver structure as it is
going to be filled via "module_platform_driver" call.

Signed-off-by: Manish Badarkhe <[email protected]>
---
:100644 100644 f0a4028... e2b97ac... M drivers/regulator/tps65218-regulator.c
drivers/regulator/tps65218-regulator.c | 1 -
1 file changed, 1 deletion(-)

diff --git a/drivers/regulator/tps65218-regulator.c b/drivers/regulator/tps65218-regulator.c
index f0a4028..e2b97ac 100644
--- a/drivers/regulator/tps65218-regulator.c
+++ b/drivers/regulator/tps65218-regulator.c
@@ -255,7 +255,6 @@ static int tps65218_regulator_probe(struct platform_device *pdev)
static struct platform_driver tps65218_regulator_driver = {
.driver = {
.name = "tps65218-pmic",
- .owner = THIS_MODULE,
.of_match_table = tps65218_of_match,
},
.probe = tps65218_regulator_probe,
--
1.7.10.4


2014-11-09 09:19:51

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: tps65218: Remove '.owner' field

On Sat, Nov 08, 2014 at 05:42:52PM +0530, Manish Badarkhe wrote:
> Remove '.owner' field of driver structure as it is
> going to be filled via "module_platform_driver" call.

Same question as ever with this stuff: if we've decided to do this why
are we doing it for a single driver and not as a genric cleanup?


Attachments:
(No filename) (311.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments

2014-11-10 14:19:18

by Manish Badarkhe

[permalink] [raw]
Subject: Re: [PATCH] regulator: tps65218: Remove '.owner' field

Hi Mark,

On Sun, Nov 9, 2014 at 2:49 PM, Mark Brown <[email protected]> wrote:
> On Sat, Nov 08, 2014 at 05:42:52PM +0530, Manish Badarkhe wrote:
>> Remove '.owner' field of driver structure as it is
>> going to be filled via "module_platform_driver" call.
>
> Same question as ever with this stuff: if we've decided to do this why
> are we doing it for a single driver and not as a genric cleanup?

There are many drivers needs to be changed with such fix.
Can we fix drivers with this fix module by module or all at once?
Please let me know your opinion.

Thanks
Manish Badarkhe

2014-11-10 15:17:11

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] regulator: tps65218: Remove '.owner' field

On Mon, Nov 10, 2014 at 07:49:16PM +0530, Manish Badarkhe wrote:
> On Sun, Nov 9, 2014 at 2:49 PM, Mark Brown <[email protected]> wrote:

> > Same question as ever with this stuff: if we've decided to do this why
> > are we doing it for a single driver and not as a genric cleanup?

> There are many drivers needs to be changed with such fix.
> Can we fix drivers with this fix module by module or all at once?
> Please let me know your opinion.

All at once, though I think Greg just did that in -next anyway.


Attachments:
(No filename) (512.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments