[Patch] Fix compile error for ML300/403

Grant Likely grant.likely at secretlab.ca
Fri Mar 10 17:36:40 EST 2006


On 3/9/06, Andrei Konovalov <akonovalov at ru.mvista.com> wrote:
> > diff --git a/arch/ppc/platforms/4xx/virtex.h b/arch/ppc/platforms/4xx/virtex.h
> > index 2a2a65c..4d893ef 100644
> > --- a/arch/ppc/platforms/4xx/virtex.h
> > +++ b/arch/ppc/platforms/4xx/virtex.h
> > @@ -27,7 +27,7 @@
> >  /* Device type enumeration for platform bus definitions */
> >  #ifndef __ASSEMBLY__
> >  enum ppc_sys_devices {
> > -       VIRTEX_UART, VIRTEX_FB,
> > +       VIRTEX_UART, VIRTEX_FB, NUM_PPC_SYS_DEVS,
>
> AFAIK there is no VIRTEX_FB in the powerpc.git tree yet.
> Otherwise I confirm that adding NUM_PPC_SYS_DEVS is necessary.

heh, oops.  yeah, I've got the FB driver in my local tree.  Fixed
patch attached...

-----

[patch] Fix compile error for ML300/403.

Due to changes in ppc_sys.c.  This is needed in Paul's powerpc.git tree

Signed-off-by: Grant Likely <grant.likely at secretlab.ca>

---
commit 60a9fb927e8f68d307339e6e268452d2c62b717f
tree e62d99cb4fa697d8d59af2a3ab063e050ba6ca99
parent 6749c5507388f3fc3719f57a54b540ee83f6661a
author Grant Likely <grant.likely at secretlab.ca> Wed, 08 Mar 2006 16:03:56 -0700
committer <grant at weasley-twins.(none)> Thu, 09 Mar 2006 23:30:38 -0700

 arch/ppc/platforms/4xx/virtex.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/ppc/platforms/4xx/virtex.h b/arch/ppc/platforms/4xx/virtex.h
index 1a01b81..c14325d 100644
--- a/arch/ppc/platforms/4xx/virtex.h
+++ b/arch/ppc/platforms/4xx/virtex.h
@@ -27,7 +27,7 @@
 /* Device type enumeration for platform bus definitions */
 #ifndef __ASSEMBLY__
 enum ppc_sys_devices {
-       VIRTEX_UART,
+       VIRTEX_UART, NUM_PPC_SYS_DEVS,
 };
 #endif



More information about the Linuxppc-embedded mailing list