mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] misc: emif: fix compilation error
@ 2012-05-25  8:11 Felipe Balbi
  2012-05-25  9:10 ` Shilimkar, Santosh
  0 siblings, 1 reply; 3+ messages in thread
From: Felipe Balbi @ 2012-05-25  8:11 UTC (permalink / raw)
  To: Linux Kernel Mailing List
  Cc: Greg KH, arnd, svadivu, aneesh, Santosh Shilimkar, Felipe Balbi

commit 99d3eccf (ARM: OMAP4/5: EMIF: Probe
Emif driver with initcall) introduced a compile
error by not removing module_init() when adding
postcore_initcall().

This problem would've been caught by just compiling
the driver as module.

Fix the issue by removing module_init() from the
driver.

Signed-off-by: Felipe Balbi <balbi@ti.com>
---
 drivers/misc/emif.c |    1 -
 1 file changed, 1 deletion(-)

diff --git a/drivers/misc/emif.c b/drivers/misc/emif.c
index 36fda8e..8725ea9 100644
--- a/drivers/misc/emif.c
+++ b/drivers/misc/emif.c
@@ -1663,7 +1663,6 @@ static void __exit emif_unregister(void)
 }
 
 postcore_initcall(emif_register);
-module_init(emif_register);
 module_exit(emif_unregister);
 MODULE_DESCRIPTION("TI EMIF SDRAM Controller Driver");
 MODULE_LICENSE("GPL");
-- 
1.7.10.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] misc: emif: fix compilation error
  2012-05-25  8:11 [PATCH] misc: emif: fix compilation error Felipe Balbi
@ 2012-05-25  9:10 ` Shilimkar, Santosh
  2012-05-25  9:29   ` Felipe Balbi
  0 siblings, 1 reply; 3+ messages in thread
From: Shilimkar, Santosh @ 2012-05-25  9:10 UTC (permalink / raw)
  To: Felipe Balbi; +Cc: Linux Kernel Mailing List, Greg KH, arnd, svadivu, aneesh

On Fri, May 25, 2012 at 1:41 PM, Felipe Balbi <balbi@ti.com> wrote:
> commit 99d3eccf (ARM: OMAP4/5: EMIF: Probe
> Emif driver with initcall) introduced a compile
> error by not removing module_init() when adding
> postcore_initcall().
>
> This problem would've been caught by just compiling
> the driver as module.
>
> Fix the issue by removing module_init() from the
> driver.
>
> Signed-off-by: Felipe Balbi <balbi@ti.com>
> ---
>  drivers/misc/emif.c |    1 -
>  1 file changed, 1 deletion(-)
>
> diff --git a/drivers/misc/emif.c b/drivers/misc/emif.c
> index 36fda8e..8725ea9 100644
> --- a/drivers/misc/emif.c
> +++ b/drivers/misc/emif.c

This driver is in drivers/memory now and this patch is
certainly not applicable. Looks like you might have seen
this issue with the older, internal version of the driver.

Regards
Santosh

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] misc: emif: fix compilation error
  2012-05-25  9:10 ` Shilimkar, Santosh
@ 2012-05-25  9:29   ` Felipe Balbi
  0 siblings, 0 replies; 3+ messages in thread
From: Felipe Balbi @ 2012-05-25  9:29 UTC (permalink / raw)
  To: Shilimkar, Santosh
  Cc: Felipe Balbi, Linux Kernel Mailing List, Greg KH, arnd, svadivu, aneesh

[-- Attachment #1: Type: text/plain, Size: 1163 bytes --]

On Fri, May 25, 2012 at 02:40:18PM +0530, Shilimkar, Santosh wrote:
> On Fri, May 25, 2012 at 1:41 PM, Felipe Balbi <balbi@ti.com> wrote:
> > commit 99d3eccf (ARM: OMAP4/5: EMIF: Probe
> > Emif driver with initcall) introduced a compile
> > error by not removing module_init() when adding
> > postcore_initcall().
> >
> > This problem would've been caught by just compiling
> > the driver as module.
> >
> > Fix the issue by removing module_init() from the
> > driver.
> >
> > Signed-off-by: Felipe Balbi <balbi@ti.com>
> > ---
> >  drivers/misc/emif.c |    1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/drivers/misc/emif.c b/drivers/misc/emif.c
> > index 36fda8e..8725ea9 100644
> > --- a/drivers/misc/emif.c
> > +++ b/drivers/misc/emif.c
> 
> This driver is in drivers/memory now and this patch is
> certainly not applicable. Looks like you might have seen
> this issue with the older, internal version of the driver.

could be.. I probably merged something I shouldn't on my master branch
;-)

Weird is that my master is built on top of v3.4... anyway.. forget about
this patch, sorry for the noise.

-- 
balbi

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-05-25  9:31 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-25  8:11 [PATCH] misc: emif: fix compilation error Felipe Balbi
2012-05-25  9:10 ` Shilimkar, Santosh
2012-05-25  9:29   ` Felipe Balbi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®