File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -920,7 +920,7 @@ static int wm0010_spi_probe(struct spi_device *spi)
920
920
if (ret ) {
921
921
dev_err (wm0010 -> dev , "Failed to set IRQ %d as wake source: %d\n" ,
922
922
irq , ret );
923
- return ret ;
923
+ goto free_irq ;
924
924
}
925
925
926
926
if (spi -> max_speed_hz )
@@ -932,9 +932,18 @@ static int wm0010_spi_probe(struct spi_device *spi)
932
932
& soc_component_dev_wm0010 , wm0010_dai ,
933
933
ARRAY_SIZE (wm0010_dai ));
934
934
if (ret < 0 )
935
- return ret ;
935
+ goto disable_irq_wake ;
936
936
937
937
return 0 ;
938
+
939
+ disable_irq_wake :
940
+ irq_set_irq_wake (wm0010 -> irq , 0 );
941
+
942
+ free_irq :
943
+ if (wm0010 -> irq )
944
+ free_irq (wm0010 -> irq , wm0010 );
945
+
946
+ return ret ;
938
947
}
939
948
940
949
static void wm0010_spi_remove (struct spi_device * spi )
You can’t perform that action at this time.
0 commit comments