| To: | Geert Uytterhoeven <geert@linux-m68k.org> |
|---|---|
| Subject: | Re: [PATCH] Suppress compiler warnings |
| From: | Thomas Koeller <thomas@koeller.dyndns.org> |
| Date: | Sun, 27 Aug 2006 18:00:27 +0200 |
| Cc: | Linux/MIPS Development <linux-mips@linux-mips.org>, Ralf Baechle <ralf@linux-mips.org> |
| In-reply-to: | <Pine.LNX.4.62.0608271411250.26709@pademelon.sonytel.be> |
| Original-recipient: | rfc822;linux-mips@linux-mips.org |
| References: | <200608271353.16681.thomas@koeller.dyndns.org> <Pine.LNX.4.62.0608271411250.26709@pademelon.sonytel.be> |
| Sender: | linux-mips-bounce@linux-mips.org |
| User-agent: | KMail/1.9.3 |
On Sunday 27 August 2006 14:12, Geert Uytterhoeven wrote:
> On Sun, 27 Aug 2006 thomas@koeller.dyndns.org wrote:
> > The excite platform exports hardware resources for device drivers to use.
> > Any driver wanting to use these resources will look up them by their
> > names. Since these resources are declared to have static linkage, but are
> > not used in the source file defining them, the compiler used to emit an
> > 'unused' warning, which this patch suppresses.
>
> How can a driver look them up, if they are not linked in in some structure?
>
> Gr{oetje,eeting}s,
>
> Geert
It uses the standard platform device/driver mechanism: the platform registers
a platform device (to which the resources are attached) with the platform bus.
The driver registers a platform driver with the platform bus. The bus matches
drivers and devices and calls the probe routine of any matching driver, at
which point the driver can look up the resources using
platform_get_resource_byname().
Thomas
--
Thomas Koeller
thomas at koeller dot dyndns dot org
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [PATCH] Add configuration variables for RM9xxx processor, Sergei Shtylyov |
|---|---|
| Next by Date: | Re: [PATCH] Add configuration variables for RM9xxx processor, Thomas Koeller |
| Previous by Thread: | Re: [PATCH] Suppress compiler warnings, Geert Uytterhoeven |
| Next by Thread: | Re: [PATCH] Suppress compiler warnings, Geert Uytterhoeven |
| Indexes: | [Date] [Thread] [Top] [All Lists] |