File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -244,10 +244,6 @@ static const char * const irq_type_names[] = {
244
244
[IRQ_TYPE_LEVEL_LOW ] = "level-low" ,
245
245
};
246
246
247
- static bool strict_gpiod ;
248
- module_param (strict_gpiod , bool , 0644 );
249
- MODULE_PARM_DESC (strict_gpiod , "unless true, outputs remain outputs when freed" );
250
-
251
247
static inline u32 bcm2835_gpio_rd (struct bcm2835_pinctrl * pc , unsigned reg )
252
248
{
253
249
return readl (pc -> base + reg );
@@ -945,8 +941,8 @@ static int bcm2835_pmx_free(struct pinctrl_dev *pctldev,
945
941
struct bcm2835_pinctrl * pc = pinctrl_dev_get_drvdata (pctldev );
946
942
enum bcm2835_fsel fsel = bcm2835_pinctrl_fsel_get (pc , offset );
947
943
948
- /* Return non-GPIOs to GPIO_IN, unless strict_gpiod is set */
949
- if (strict_gpiod || ( fsel != BCM2835_FSEL_GPIO_IN && fsel != BCM2835_FSEL_GPIO_OUT ) )
944
+ /* Return non-GPIOs to GPIO_IN */
945
+ if (fsel != BCM2835_FSEL_GPIO_IN && fsel != BCM2835_FSEL_GPIO_OUT )
950
946
bcm2835_pinctrl_fsel_set (pc , offset , BCM2835_FSEL_GPIO_IN );
951
947
952
948
return 0 ;
You can’t perform that action at this time.
0 commit comments