platform_driver_register() ??

2007-07-03 Thread Midhun Agnihotram
platform_driver_register() method. What is the difference between the two? Thanks, Midhun. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FA

Re: platform_driver_register() ??

2007-07-08 Thread Pierre Ossman
On Thu, 5 Jul 2007 14:51:35 +0530 "Midhun Agnihotram" <[EMAIL PROTECTED]> wrote: > > Is it necessary that the firmware (may be bootloader) notify about > the MMC host to Linux? The kernel documentation (platform.txt) says : > > "The firmware should notify the platform bus about devices befo

Re: platform_driver_register() ??

2007-07-03 Thread Nobin Mathew
ne supplied by Cogent uses platform_driver_register() method. What is the difference between the two? Thanks, Midhun. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/maj

Re: platform_driver_register() ??

2007-07-03 Thread Pierre Ossman
On Tue, 3 Jul 2007 18:28:40 +0530 "Nobin Mathew" <[EMAIL PROTECTED]> wrote: > Hi Midhun, > I think mmc driver is layered modules, only top block driver > registers driver under "mmc_bus_type" bus, see > drivers/mmc/mmc_sysfs.c and mmc_block.c. I think they are creating a > tree of devices of

Re: platform_driver_register() ??

2007-07-05 Thread Midhun Agnihotram
Hi All, > I think mmc driver is layered modules, only top block driver > registers driver under "mmc_bus_type" bus, see > drivers/mmc/mmc_sysfs.c and mmc_block.c. I think they are creating a > tree of devices of same characteristics under that bus. > I think your driver is linux/drivers/mm

[PATCH] module: use a macro instead of platform_driver_register

2013-05-24 Thread Libo Chen
I found a lot of mistakes using struct platform_driver without owner so I make a macro instead of the function platform_driver_register. It can set owner in it, then guys don`t care about module owner again. Signed-off-by: Libo Chen --- drivers/base/platform.c |8 +--- include

Re: [PATCH] module: use a macro instead of platform_driver_register

2013-05-28 Thread Libo Chen
On 2013/5/25 20:22, Greg KH wrote: > On Sat, May 25, 2013 at 12:40:50PM +0800, Libo Chen wrote: >> >> I found a lot of mistakes using struct platform_driver without owner >> so I make a macro instead of the function platform_driver_register. >> It can set owner in it,

Re: [PATCH] module: use a macro instead of platform_driver_register

2013-05-25 Thread Greg KH
On Sat, May 25, 2013 at 12:40:50PM +0800, Libo Chen wrote: > > I found a lot of mistakes using struct platform_driver without owner > so I make a macro instead of the function platform_driver_register. > It can set owner in it, then guys don`t care about module owner again. >

[PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-10 Thread Matwey V. Kornilov
Use platform_driver_probe instead of platform_driver_register because the former allows us to use probe function placed into __init section and the driver itself is not support hotplugging (yet?). Signed-off-by: Matwey V. Kornilov --- Changes from v1: - Use platform_driver_probe instead of

[PATCH] slimbus: add a check for the status of platform_driver_register

2018-12-25 Thread Kangjie Lu
platform_driver_register() may fail. The fix checks its status and issues an error message if it fails. Signed-off-by: Kangjie Lu --- drivers/slimbus/qcom-ngd-ctrl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/slimbus/qcom-ngd-ctrl.c b/drivers/slimbus/qcom-ngd

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-16 Thread Viresh Kumar
On 15 February 2015 at 21:16, Matwey V. Kornilov wrote: > Or maybe it doesn't work at all. It wouldn't have as that wasn't required earlier. But when we are fixing it, we fix it proper. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord..

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-12 Thread Matwey V. Kornilov
m dw_pcie_host_init() which is called from driver .probe. > >> 11.02.2015 11:18 пользователь "Stanimir Varbanov" >> написал: >> >>> Hi, >>> >>> On 02/11/2015 05:35 AM, Viresh Kumar wrote: >>> >>>> On 11 February 2015 at 0

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-12 Thread Stanimir Varbanov
Hi, On 02/12/2015 11:07 AM, Matwey V. Kornilov wrote: > 2015-02-11 12:19 GMT+03:00 Stanimir Varbanov : >> please don't top posting. >> >> On 02/11/2015 10:38 AM, Matwey V. Kornilov wrote:HI >> >>> It sounds reasonable, but does current implementation support deferring? >> >>thor >> yes, it uses de

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-15 Thread Matwey V. Kornilov
2015-02-13 5:08 GMT+03:00 Stanimir Varbanov : > Hi, > > On 02/12/2015 11:07 AM, Matwey V. Kornilov wrote: >> 2015-02-11 12:19 GMT+03:00 Stanimir Varbanov : >>> please don't top posting. >>> >>> On 02/11/2015 10:38 AM, Matwey V. Kornilov wrote:HI >>> It sounds reasonable, but does current imple

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-10 Thread Viresh Kumar
On 11 February 2015 at 00:31, Matwey V. Kornilov wrote: > Use platform_driver_probe instead of platform_driver_register > because the former allows us to use probe function placed into __init section > and the driver itself is not support hotplugging (yet?). > > Signed-off-by: Mat

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-10 Thread Stanimir Varbanov
Hi, On 02/11/2015 05:35 AM, Viresh Kumar wrote: On 11 February 2015 at 00:31, Matwey V. Kornilov wrote: Use platform_driver_probe instead of platform_driver_register because the former allows us to use probe function placed into __init section and the driver itself is not support hotplugging

Re: [PATCHv2 1/2] pci: spear: Use platform_driver_probe instead of platform_driver_register

2015-02-11 Thread Stanimir Varbanov
.2015 11:18 пользователь "Stanimir Varbanov" написал: Hi, On 02/11/2015 05:35 AM, Viresh Kumar wrote: On 11 February 2015 at 00:31, Matwey V. Kornilov wrote: Use platform_driver_probe instead of platform_driver_register because the former allows us to use probe function placed into