aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar7-2.6/files
diff options
context:
space:
mode:
authorNicolas Thill <nico@openwrt.org>2007-07-27 00:59:50 +0000
committerNicolas Thill <nico@openwrt.org>2007-07-27 00:59:50 +0000
commit76deaf82bcad9a0b9f072b30b5fadcd178eae294 (patch)
tree7e0cdad903b17fe695cd9d87c17183a90778b1b6 /target/linux/ar7-2.6/files
parent8ad6a0b07fe9e504a9c46c2f72172d2bd8f53958 (diff)
downloadupstream-76deaf82bcad9a0b9f072b30b5fadcd178eae294.tar.gz
upstream-76deaf82bcad9a0b9f072b30b5fadcd178eae294.tar.bz2
upstream-76deaf82bcad9a0b9f072b30b5fadcd178eae294.zip
cosmetic fix (indent and use c-style comments)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@8188 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7-2.6/files')
-rw-r--r--target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c
index e085c5b199..5856ece1d4 100644
--- a/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c
+++ b/target/linux/ar7-2.6/files/arch/mips/ar7/vlynq.c
@@ -289,7 +289,7 @@ EXPORT_SYMBOL(vlynq_unregister_driver);
int vlynq_device_enable(struct vlynq_device *dev)
{
- u32 div;
+ u32 div;
int result;
struct plat_vlynq_ops *ops = dev->dev.platform_data;
@@ -300,24 +300,24 @@ int vlynq_device_enable(struct vlynq_device *dev)
dev->local->control = 0;
dev->remote->control = 0;
- div = ar7_dsp_freq() / 62500000;
- if(ar7_dsp_freq() / div != 62500000)
- {
+ div = ar7_dsp_freq() / 62500000;
+ if(ar7_dsp_freq() / div != 62500000)
+ {
printk(KERN_WARNING
- "VLYNQ: Adjusted requested frequency %d to %d\n",
- 62500000, ar7_dsp_freq() / div);
- }
+ "VLYNQ: Adjusted requested frequency %d to %d\n",
+ 62500000, ar7_dsp_freq() / div);
+ }
- printk("VLYNQ: Setting clock to %d (clock divider %u)\n", ar7_dsp_freq() / div, div);
- dev->local->control = VLYNQ_CTRL_CLOCK_DIV((div - 1)) |
+ printk("VLYNQ: Setting clock to %d (clock divider %u)\n", ar7_dsp_freq() / div, div);
+ dev->local->control = VLYNQ_CTRL_CLOCK_DIV((div - 1)) |
VLYNQ_CTRL_CLOCK_INT;
-
-// dev->local->control = VLYNQ_CTRL_CLOCK_INT;
-
- if (vlynq_linked(dev))
+/*
+ dev->local->control = VLYNQ_CTRL_CLOCK_INT;
+*/
+ if (vlynq_linked(dev))
return vlynq_setup_irq(dev);
- return -ENODEV;
+ return -ENODEV;
}
void vlynq_device_disable(struct vlynq_device *dev)