@@ -857,7 +857,6 @@ static int pisnd_ctl_uninit(void)
857
857
858
858
static struct gpio_desc * osr0 , * osr1 , * osr2 ;
859
859
static struct gpio_desc * reset ;
860
- static struct gpio_desc * button ;
861
860
862
861
static int pisnd_hw_params (
863
862
struct snd_pcm_substream * substream ,
@@ -1016,8 +1015,6 @@ static int pisnd_init_gpio(struct device *dev)
1016
1015
1017
1016
reset = gpiod_get_index (dev , "reset" , 0 , GPIOD_ASIS );
1018
1017
1019
- button = gpiod_get_index (dev , "button" , 0 , GPIOD_ASIS );
1020
-
1021
1018
gpiod_direction_output (osr0 , 1 );
1022
1019
gpiod_direction_output (osr1 , 1 );
1023
1020
gpiod_direction_output (osr2 , 1 );
@@ -1029,8 +1026,6 @@ static int pisnd_init_gpio(struct device *dev)
1029
1026
gpiod_set_value (osr2 , false);
1030
1027
gpiod_set_value (reset , true);
1031
1028
1032
- gpiod_export (button , false);
1033
-
1034
1029
return 0 ;
1035
1030
}
1036
1031
@@ -1039,11 +1034,9 @@ static int pisnd_uninit_gpio(void)
1039
1034
int i ;
1040
1035
1041
1036
struct gpio_desc * * gpios [] = {
1042
- & osr0 , & osr1 , & osr2 , & reset , & button ,
1037
+ & osr0 , & osr1 , & osr2 , & reset ,
1043
1038
};
1044
1039
1045
- gpiod_unexport (button );
1046
-
1047
1040
for (i = 0 ; i < ARRAY_SIZE (gpios ); ++ i ) {
1048
1041
if (* gpios [i ] == NULL ) {
1049
1042
printd ("weird, GPIO[%d] is NULL already\n" , i );
0 commit comments