* [PATCH 3/3] spi: qup: Remove .owner field for driver @ 2014-10-09 7:42 Kiran Padwal 2014-10-13 13:09 ` Mark Brown 0 siblings, 1 reply; 5+ messages in thread From: Kiran Padwal @ 2014-10-09 7:42 UTC (permalink / raw) To: broonie-DgEjT+Ai2ygdnm+yROfE0A Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA, Kiran Padwal There is no need to init .owner field. Based on the patch from Peter Griffin <peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> "mmc: remove .owner field for drivers using module_platform_driver" This patch removes the superfluous .owner field for drivers which use the module_platform_driver API, as this is overridden in platform_driver_register anyway." Signed-off-by: Kiran Padwal <kiran.padwal-edOiRQu9Xnj5XLMNweQjbQ@public.gmane.org> --- drivers/spi/spi-qup.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/spi-qup.c b/drivers/spi/spi-qup.c index 97471e1..30511bd 100644 --- a/drivers/spi/spi-qup.c +++ b/drivers/spi/spi-qup.c @@ -758,7 +758,6 @@ static const struct dev_pm_ops spi_qup_dev_pm_ops = { static struct platform_driver spi_qup_driver = { .driver = { .name = "spi_qup", - .owner = THIS_MODULE, .pm = &spi_qup_dev_pm_ops, .of_match_table = spi_qup_dt_match, }, -- 1.7.9.5 -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] spi: qup: Remove .owner field for driver 2014-10-09 7:42 [PATCH 3/3] spi: qup: Remove .owner field for driver Kiran Padwal @ 2014-10-13 13:09 ` Mark Brown [not found] ` <20141013130918.GY27755-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> 0 siblings, 1 reply; 5+ messages in thread From: Mark Brown @ 2014-10-13 13:09 UTC (permalink / raw) To: Kiran Padwal; +Cc: linux-spi, linux-kernel, linux-arm-msm [-- Attachment #1: Type: text/plain, Size: 606 bytes --] On Thu, Oct 09, 2014 at 01:12:08PM +0530, Kiran Padwal wrote: > There is no need to init .owner field. > > Based on the patch from Peter Griffin <peter.griffin@linaro.org> > "mmc: remove .owner field for drivers using module_platform_driver" > > This patch removes the superfluous .owner field for drivers which > use the module_platform_driver API, as this is overridden in > platform_driver_register anyway." Two problems: - I'm missing patches 1 and 2. - This only changes one driver but essentially every SPI driver initializes .owner - why is only thi sone driver being changed? [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
[parent not found: <20141013130918.GY27755-GFdadSzt00ze9xe1eoZjHA@public.gmane.org>]
* Re: [PATCH 3/3] spi: qup: Remove .owner field for driver [not found] ` <20141013130918.GY27755-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> @ 2014-10-14 6:17 ` Kiran Padwal 2014-10-14 8:09 ` Mark Brown 0 siblings, 1 reply; 5+ messages in thread From: Kiran Padwal @ 2014-10-14 6:17 UTC (permalink / raw) To: Mark Brown Cc: linux-spi-u79uwXL29TY76Z2rM5mHXA, linux-kernel-u79uwXL29TY76Z2rM5mHXA, linux-arm-msm-u79uwXL29TY76Z2rM5mHXA On Monday 13 October 2014 06:39 PM, Mark Brown wrote: > On Thu, Oct 09, 2014 at 01:12:08PM +0530, Kiran Padwal wrote: >> There is no need to init .owner field. >> >> Based on the patch from Peter Griffin <peter.griffin-QSEj5FYQhm4dnm+yROfE0A@public.gmane.org> >> "mmc: remove .owner field for drivers using module_platform_driver" >> >> This patch removes the superfluous .owner field for drivers which >> use the module_platform_driver API, as this is overridden in >> platform_driver_register anyway." > > Two problems: > - I'm missing patches 1 and 2. These patches are same like this one, [1] https://lkml.org/lkml/2014/10/9/58 [2] https://lkml.org/lkml/2014/10/9/52 > - This only changes one driver but essentially every SPI driver > initializes .owner - why is only thi sone driver being changed? > Nothing more intention, but just remove superfluous .owner field for drivers which use the module_platform_driver API, as this is overridden in platform_driver_register anyway. Thanks, --Kiran -- To unsubscribe from this list: send the line "unsubscribe linux-spi" in the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org More majordomo info at http://vger.kernel.org/majordomo-info.html ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] spi: qup: Remove .owner field for driver 2014-10-14 6:17 ` Kiran Padwal @ 2014-10-14 8:09 ` Mark Brown 2014-10-14 9:01 ` Kiran Padwal 0 siblings, 1 reply; 5+ messages in thread From: Mark Brown @ 2014-10-14 8:09 UTC (permalink / raw) To: Kiran Padwal; +Cc: linux-spi, linux-kernel, linux-arm-msm [-- Attachment #1: Type: text/plain, Size: 909 bytes --] On Tue, Oct 14, 2014 at 11:47:57AM +0530, Kiran Padwal wrote: > On Monday 13 October 2014 06:39 PM, Mark Brown wrote: > > Two problems: > > - I'm missing patches 1 and 2. > These patches are same like this one, > [1] https://lkml.org/lkml/2014/10/9/58 > [2] https://lkml.org/lkml/2014/10/9/52 You should at least be sending the cover letter to everyone so that they know what's going on. > > - This only changes one driver but essentially every SPI driver > > initializes .owner - why is only thi sone driver being changed? > Nothing more intention, but just remove superfluous .owner field for drivers which > use the module_platform_driver API, as this is overridden in > platform_driver_register anyway. My point is that doing a change like this to random drivers isn't great, if you're going to do this sort of thing it is better to do it for everything rather than making things inconsistent. [-- Attachment #2: Digital signature --] [-- Type: application/pgp-signature, Size: 473 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH 3/3] spi: qup: Remove .owner field for driver 2014-10-14 8:09 ` Mark Brown @ 2014-10-14 9:01 ` Kiran Padwal 0 siblings, 0 replies; 5+ messages in thread From: Kiran Padwal @ 2014-10-14 9:01 UTC (permalink / raw) To: Mark Brown; +Cc: linux-spi, linux-kernel, linux-arm-msm On Tuesday 14 October 2014 01:39 PM, Mark Brown wrote: > On Tue, Oct 14, 2014 at 11:47:57AM +0530, Kiran Padwal wrote: >> On Monday 13 October 2014 06:39 PM, Mark Brown wrote: > >>> Two problems: >>> - I'm missing patches 1 and 2. > >> These patches are same like this one, >> [1] https://lkml.org/lkml/2014/10/9/58 >> [2] https://lkml.org/lkml/2014/10/9/52 > > You should at least be sending the cover letter to everyone so that they > know what's going on. OK, I will take care of this next time. > >>> - This only changes one driver but essentially every SPI driver >>> initializes .owner - why is only thi sone driver being changed? > >> Nothing more intention, but just remove superfluous .owner field for drivers which >> use the module_platform_driver API, as this is overridden in >> platform_driver_register anyway. > > My point is that doing a change like this to random drivers isn't great, > if you're going to do this sort of thing it is better to do it for > everything rather than making things inconsistent. > Sure, I will do that. Thanks, --Kiran ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2014-10-14 9:01 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2014-10-09 7:42 [PATCH 3/3] spi: qup: Remove .owner field for driver Kiran Padwal 2014-10-13 13:09 ` Mark Brown [not found] ` <20141013130918.GY27755-GFdadSzt00ze9xe1eoZjHA@public.gmane.org> 2014-10-14 6:17 ` Kiran Padwal 2014-10-14 8:09 ` Mark Brown 2014-10-14 9:01 ` Kiran Padwal
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).