diff options
author | Florian Fainelli <florian@openwrt.org> | 2008-09-01 19:29:25 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2008-09-01 19:29:25 +0000 |
commit | 87799806960475cfe7baaef42a1e8016168c33b8 (patch) | |
tree | 4cc51b4526fdffb792b2cc299170c5418169cf77 /target/linux/ar7/files/drivers/vlynq | |
parent | 8df932fe98e4b818c7dfe84dfcd6c8a1aa48ff6e (diff) | |
download | upstream-87799806960475cfe7baaef42a1e8016168c33b8.tar.gz upstream-87799806960475cfe7baaef42a1e8016168c33b8.tar.bz2 upstream-87799806960475cfe7baaef42a1e8016168c33b8.zip |
Treat vlynq external divisor just like automatic, fix comment about it, thanks sn9
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@12467 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar7/files/drivers/vlynq')
-rw-r--r-- | target/linux/ar7/files/drivers/vlynq/vlynq.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/linux/ar7/files/drivers/vlynq/vlynq.c b/target/linux/ar7/files/drivers/vlynq/vlynq.c index 14022b1fb2..25f303bf1d 100644 --- a/target/linux/ar7/files/drivers/vlynq/vlynq.c +++ b/target/linux/ar7/files/drivers/vlynq/vlynq.c @@ -367,8 +367,8 @@ static int __vlynq_enable_device(struct vlynq_device *dev) return result; switch (dev->divisor) { + case vlynq_div_external: case vlynq_div_auto: - /* Only try locally supplied clock, others cause problems */ vlynq_reg_write(dev->local->control, 0); vlynq_reg_write(dev->remote->control, 0); if (vlynq_linked(dev)) { @@ -377,6 +377,8 @@ static int __vlynq_enable_device(struct vlynq_device *dev) dev->dev.bus_id); return 0; } + + /* Only try locally supplied clock, others cause problems */ for (i = dev->dev_id ? vlynq_ldiv2 : vlynq_ldiv8; dev->dev_id ? i <= vlynq_ldiv8 : i >= vlynq_ldiv2; dev->dev_id ? i++ : i--) { |