summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Maki <jmaki@multitech.com>2010-05-04 12:32:11 -0500
committerJames Maki <jmaki@multitech.com>2010-05-04 12:32:11 -0500
commitd855cd0e9e52dc0977ca23201a8cd6ed0ec16124 (patch)
treed90e30ed3ace803dd4eb566115ec92dd00f76b1f
parentc015b4cd3e6acf0b26d8d88ef023b089e53bb0f6 (diff)
downloadcdp-io-controller-d855cd0e9e52dc0977ca23201a8cd6ed0ec16124.tar.gz
cdp-io-controller-d855cd0e9e52dc0977ca23201a8cd6ed0ec16124.tar.bz2
cdp-io-controller-d855cd0e9e52dc0977ca23201a8cd6ed0ec16124.zip
fix an oops!
-rw-r--r--io-module/mts_io.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/io-module/mts_io.c b/io-module/mts_io.c
index f8637ba..adfe92f 100644
--- a/io-module/mts_io.c
+++ b/io-module/mts_io.c
@@ -968,6 +968,7 @@ static struct attribute *platform_attributes[] = {
&dev_attr_eth0_enabled.attr,
&dev_attr_extserial_dcd.attr,
&dev_attr_extserial_ri.attr,
+ &dev_attr_extserial_dsr.attr,
&dev_attr_led_sig1.attr,
&dev_attr_led_sdk_c.attr,
&dev_attr_led_sig2.attr,
@@ -1331,8 +1332,8 @@ static void __exit mts_io_exit(void)
spi_unregister_driver(&mts_spi_board_temp_driver);
spi_unregister_driver(&mts_spi_sregout_driver);
- if (board_rev >= gpio_pins[i].board_rev_added) {
- for (i = 0; i < ARRAY_SIZE(gpio_pins); i++) {
+ for (i = 0; i < ARRAY_SIZE(gpio_pins); i++) {
+ if (board_rev >= gpio_pins[i].board_rev_added) {
at91_set_gpio_input(gpio_pins[i].pin, gpio_pins[i].use_pullup);
}
}