Hello. On 21-05-2013 6:42, Libo Chen wrote:
set the owner of platform_driver, to ensure that the caller of driver holds a module refernece
Signed-off-by: Libo Chen <libo.c...@huawei.com> --- drivers/net/irda/bfin_sir.c | 1 + drivers/net/irda/sh_irda.c | 1 + drivers/net/irda/sh_sir.c | 1 + drivers/net/irda/smsc-ircc2.c | 1 + 4 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/drivers/net/irda/bfin_sir.c b/drivers/net/irda/bfin_sir.c index 22b4527..bf976f3 100644 --- a/drivers/net/irda/bfin_sir.c +++ b/drivers/net/irda/bfin_sir.c @@ -806,6 +806,7 @@ static struct platform_driver bfin_ir_driver = { .resume = bfin_sir_resume, .driver = { .name = DRIVER_NAME, + .owner = THIS_MODULE,
Either indent last = with space as above, or indent both = with tabs. WBR, Sergei -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/