aboutsummaryrefslogtreecommitdiffstats
path: root/arch/sparc
diff options
context:
space:
mode:
authorSam Ravnborg <sam@ravnborg.org>2008-12-08 04:02:55 -0500
committerDavid S. Miller <davem@davemloft.net>2008-12-08 04:02:55 -0500
commit85bfbf44c37e403d4fcbcd630b3ca2377b156485 (patch)
tree97b2f2d27163e23ca375f446513eb4184e3a56ee /arch/sparc
parent39f6649b61536138fd16188c1a8dd30795a3696a (diff)
sparc: fix trivial style issues in kernel/pmc.c
o drop trailing whitespaces o align a fix things properly Signed-off-by: Sam Ravnborg <sam@ravnborg.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc')
-rw-r--r--arch/sparc/kernel/pmc.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/arch/sparc/kernel/pmc.c b/arch/sparc/kernel/pmc.c
index 33cd4998eb04..5e4563d86f19 100644
--- a/arch/sparc/kernel/pmc.c
+++ b/arch/sparc/kernel/pmc.c
@@ -24,32 +24,32 @@
24 */ 24 */
25 25
26#define PMC_OBPNAME "SUNW,pmc" 26#define PMC_OBPNAME "SUNW,pmc"
27#define PMC_DEVNAME "pmc" 27#define PMC_DEVNAME "pmc"
28 28
29#define PMC_IDLE_REG 0x00 29#define PMC_IDLE_REG 0x00
30#define PMC_IDLE_ON 0x01 30#define PMC_IDLE_ON 0x01
31 31
32static u8 __iomem *regs; 32static u8 __iomem *regs;
33 33
34#define pmc_readb(offs) (sbus_readb(regs+offs)) 34#define pmc_readb(offs) (sbus_readb(regs+offs))
35#define pmc_writeb(val, offs) (sbus_writeb(val, regs+offs)) 35#define pmc_writeb(val, offs) (sbus_writeb(val, regs+offs))
36 36
37/* 37/*
38 * CPU idle callback function 38 * CPU idle callback function
39 * See .../arch/sparc/kernel/process.c 39 * See .../arch/sparc/kernel/process.c
40 */ 40 */
41static void pmc_swift_idle(void) 41static void pmc_swift_idle(void)
42{ 42{
43#ifdef PMC_DEBUG_LED 43#ifdef PMC_DEBUG_LED
44 set_auxio(0x00, AUXIO_LED); 44 set_auxio(0x00, AUXIO_LED);
45#endif 45#endif
46 46
47 pmc_writeb(pmc_readb(PMC_IDLE_REG) | PMC_IDLE_ON, PMC_IDLE_REG); 47 pmc_writeb(pmc_readb(PMC_IDLE_REG) | PMC_IDLE_ON, PMC_IDLE_REG);
48 48
49#ifdef PMC_DEBUG_LED 49#ifdef PMC_DEBUG_LED
50 set_auxio(AUXIO_LED, 0x00); 50 set_auxio(AUXIO_LED, 0x00);
51#endif 51#endif
52} 52}
53 53
54static int __devinit pmc_probe(struct of_device *op, 54static int __devinit pmc_probe(struct of_device *op,
55 const struct of_device_id *match) 55 const struct of_device_id *match)
@@ -63,7 +63,7 @@ static int __devinit pmc_probe(struct of_device *op,
63 63
64#ifndef PMC_NO_IDLE 64#ifndef PMC_NO_IDLE
65 /* Assign power management IDLE handler */ 65 /* Assign power management IDLE handler */
66 pm_idle = pmc_swift_idle; 66 pm_idle = pmc_swift_idle;
67#endif 67#endif
68 68
69 printk(KERN_INFO "%s: power management initialized\n", PMC_DEVNAME); 69 printk(KERN_INFO "%s: power management initialized\n", PMC_DEVNAME);