Skip to contentSkip to conversation

sparc: unify openprom.h

PATCH Applied Sam Ravnborg 2 participants 2 messages Jan 1, 2009 – Jan 3, 2009 SPARC + UltraSPARC (sparc/sparc64)

lore
Share & tools
lore
#0 lore raw

PATCH 7/7 sparc: unify openprom.h

After the preparational steps the unification was simple.

The linux_prom_pci_registers definition did not look like it could be unified at first look sine the structure is assigned using prop_getproperty() / of_get_property() so the structure is assumed to come direct form the prom.

The LINUX_OPPROM_MAGIC was kept even if it is not used by the kernel on the assumption that userspace may require it.

---
 arch/sparc/include/asm/Kbuild        |    2 -
 arch/sparc/include/asm/openprom.h    |  277 +++++++++++++++++++++++++++++++++-
 arch/sparc/include/asm/openprom_32.h |  234 ----------------------------
 arch/sparc/include/asm/openprom_64.h |  248 ------------------------------
 4 files changed, 273 insertions(+), 488 deletions(-)
 delete mode 100644 arch/sparc/include/asm/openprom_32.h
 delete mode 100644 arch/sparc/include/asm/openprom_64.h
arch/sparc/include/asm/Kbuild +0 -2
index 2eb9450..aeaec45 100644
@@ -8,8 +8,6 @@ header-y += envctrl.h
 header-y += fbio.h
 header-y += jsflash.h
 header-y += openprom.h
-header-y += openprom_32.h
-header-y += openprom_64.h
 header-y += openpromio.h
 header-y += perfctr.h
 header-y += psrcompat.h
arch/sparc/include/asm/openprom.h +273 -4

281 lines not on this page · raw message

arch/sparc/include/asm/openprom_32.h deleted +0 -234

234 lines not on this page · raw message

arch/sparc/include/asm/openprom_64.h deleted +0 -248

248 lines not on this page · raw message

Signature · 1 line
1.6.0.2.GIT
maintainer
#1 lore raw

From: Sam Ravnborg <[email protected]>
Date: Thu, 1 Jan 2009 21:03:10 +0100

Quoted 11 lines

After the preparational steps the unification was simple.

The linux_prom_pci_registers definition did not look like it could be unified at first look sine the structure is assigned using prop_getproperty() / of_get_property() so the structure is assumed to come direct form the prom.

The LINUX_OPPROM_MAGIC was kept even if it is not used by the kernel on the assumption that userspace may require it.

Also applied, thanks a lot Sam.