diff options
author | Jon Loeliger <linuxppc@jdl.com> | 2005-09-17 11:36:54 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2005-09-18 19:38:49 -0400 |
commit | aacaf9bd9646f6f611a08fca976411b6e5ddefe2 (patch) | |
tree | 604853646cc176c0a0908db39f254285121fa50c /drivers/macintosh/via-pmu68k.c | |
parent | f495a8bfd6a52cf32859f93d5320bb234d8a9560 (diff) |
[PATCH] powerpc: Remove sections use from ppc64 and drivers
Here is a new patch that removes all notion of the pmac, prep,
chrp and openfirmware initialization sections, and then unifies
the sections.h files without those __pmac, etc, sections identifiers
cluttering things up.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <kumar.gala@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'drivers/macintosh/via-pmu68k.c')
-rw-r--r-- | drivers/macintosh/via-pmu68k.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/drivers/macintosh/via-pmu68k.c b/drivers/macintosh/via-pmu68k.c index 820dc52e30bc..6f80d76ac17c 100644 --- a/drivers/macintosh/via-pmu68k.c +++ b/drivers/macintosh/via-pmu68k.c | |||
@@ -835,7 +835,7 @@ static struct pci_save { | |||
835 | } *pbook_pci_saves; | 835 | } *pbook_pci_saves; |
836 | static int n_pbook_pci_saves; | 836 | static int n_pbook_pci_saves; |
837 | 837 | ||
838 | static inline void __openfirmware | 838 | static inline void |
839 | pbook_pci_save(void) | 839 | pbook_pci_save(void) |
840 | { | 840 | { |
841 | int npci; | 841 | int npci; |
@@ -863,7 +863,7 @@ pbook_pci_save(void) | |||
863 | } | 863 | } |
864 | } | 864 | } |
865 | 865 | ||
866 | static inline void __openfirmware | 866 | static inline void |
867 | pbook_pci_restore(void) | 867 | pbook_pci_restore(void) |
868 | { | 868 | { |
869 | u16 cmd; | 869 | u16 cmd; |
@@ -902,7 +902,7 @@ pbook_pci_restore(void) | |||
902 | #define IRQ_ENABLE ((unsigned int *)0xf3000024) | 902 | #define IRQ_ENABLE ((unsigned int *)0xf3000024) |
903 | #define MEM_CTRL ((unsigned int *)0xf8000070) | 903 | #define MEM_CTRL ((unsigned int *)0xf8000070) |
904 | 904 | ||
905 | int __openfirmware powerbook_sleep(void) | 905 | int powerbook_sleep(void) |
906 | { | 906 | { |
907 | int ret, i, x; | 907 | int ret, i, x; |
908 | static int save_backlight; | 908 | static int save_backlight; |
@@ -1001,25 +1001,24 @@ int __openfirmware powerbook_sleep(void) | |||
1001 | /* | 1001 | /* |
1002 | * Support for /dev/pmu device | 1002 | * Support for /dev/pmu device |
1003 | */ | 1003 | */ |
1004 | static int __openfirmware pmu_open(struct inode *inode, struct file *file) | 1004 | static int pmu_open(struct inode *inode, struct file *file) |
1005 | { | 1005 | { |
1006 | return 0; | 1006 | return 0; |
1007 | } | 1007 | } |
1008 | 1008 | ||
1009 | static ssize_t __openfirmware pmu_read(struct file *file, char *buf, | 1009 | static ssize_t pmu_read(struct file *file, char *buf, |
1010 | size_t count, loff_t *ppos) | 1010 | size_t count, loff_t *ppos) |
1011 | { | 1011 | { |
1012 | return 0; | 1012 | return 0; |
1013 | } | 1013 | } |
1014 | 1014 | ||
1015 | static ssize_t __openfirmware pmu_write(struct file *file, const char *buf, | 1015 | static ssize_t pmu_write(struct file *file, const char *buf, |
1016 | size_t count, loff_t *ppos) | 1016 | size_t count, loff_t *ppos) |
1017 | { | 1017 | { |
1018 | return 0; | 1018 | return 0; |
1019 | } | 1019 | } |
1020 | 1020 | ||
1021 | /* Note: removed __openfirmware here since it causes link errors */ | 1021 | static int pmu_ioctl(struct inode * inode, struct file *filp, |
1022 | static int /*__openfirmware*/ pmu_ioctl(struct inode * inode, struct file *filp, | ||
1023 | u_int cmd, u_long arg) | 1022 | u_int cmd, u_long arg) |
1024 | { | 1023 | { |
1025 | int error; | 1024 | int error; |