|
@@ -127,10 +127,6 @@ int get_board_revision(void)
|
|
revision = gpio_get_value(173) << 2 |
|
|
revision = gpio_get_value(173) << 2 |
|
|
gpio_get_value(172) << 1 |
|
|
gpio_get_value(172) << 1 |
|
|
gpio_get_value(171);
|
|
gpio_get_value(171);
|
|
-
|
|
|
|
- gpio_free(171);
|
|
|
|
- gpio_free(172);
|
|
|
|
- gpio_free(173);
|
|
|
|
} else {
|
|
} else {
|
|
printf("Error: unable to acquire board revision GPIOs\n");
|
|
printf("Error: unable to acquire board revision GPIOs\n");
|
|
revision = -1;
|
|
revision = -1;
|
|
@@ -522,8 +518,6 @@ int do_userbutton(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
|
|
printf("NOT pressed.\n");
|
|
printf("NOT pressed.\n");
|
|
}
|
|
}
|
|
|
|
|
|
- gpio_free(gpio);
|
|
|
|
-
|
|
|
|
return !button;
|
|
return !button;
|
|
}
|
|
}
|
|
|
|
|