public inbox for linux-m68k@lists.linux-m68k.org
 help / color / mirror / Atom feed
From: fthain@telegraphics.com.au
To: Brad Boyer <flar@allandria.com>
Cc: linux-m68k <linux-m68k@vger.kernel.org>
Subject: Re: initcall question
Date: Sat, 24 Oct 2009 03:30:11 +1100 (EST)	[thread overview]
Message-ID: <alpine.LNX.2.00.0910240325040.26550@nippy.intranet> (raw)
In-Reply-To: <20091022192436.GA7969@cynthia.pants.nu>



On Thu, 22 Oct 2009, Brad Boyer wrote:

> On Fri, Oct 23, 2009 at 12:56:50AM +1100, fthain@telegraphics.com.au 
> wrote:
> > If the platform devices are statically defined, they get no release 
> > method which can result in the driver core carping, "Device 'scc.0' 
> > does not have a release() function, it is broken and must be fixed", 
> > and then dumping a backtrace.
> > 
> > The alternative to statically defined devices is 
> > platform_device_alloc(), which does provide a release method, but I 
> > can't call it at arch_initcall time because the console_initcall has 
> > already happened. And I can't use it at setup_arch() time (when the 
> > boot info is parsed) because there's no kmalloc() yet.
> > 
> > What to do? I don't want to export the bootinfo data to the pmac_zilog 
> > driver for console initialisation. And I'd really like to avoid a 
> > bunch of hard coded SCC base addresses.
> > 
> > Any suggestions?
> 
> Could you just define and set a release function that does nothing? 
> That's kind of silly, but it seems like it should work. If it's static 
> memory anyway, there isn't anything to free.

I guess it is a cheap enough. It does work.

Thanks,
Finn

> 	Brad Boyer
> 	flar@allandria.com
> 

      reply	other threads:[~2009-10-23 16:30 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-22 13:56 initcall question fthain
2009-10-22 19:24 ` Brad Boyer
2009-10-23 16:30   ` fthain [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=alpine.LNX.2.00.0910240325040.26550@nippy.intranet \
    --to=fthain@telegraphics.com.au \
    --cc=flar@allandria.com \
    --cc=linux-m68k@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox