File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1045,8 +1045,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
10451045 * The notifier is initialized in snd_soc_card_jack_new(), then
10461046 * snd_soc_jack_notifier_register can be called.
10471047 */
1048- if (of_property_read_bool (np , "hp-det-gpios" ) ||
1049- of_property_read_bool (np , "hp-det-gpio" ) /* deprecated */ ) {
1048+ if (of_property_present (np , "hp-det-gpios" ) ||
1049+ of_property_present (np , "hp-det-gpio" ) /* deprecated */ ) {
10501050 ret = simple_util_init_jack (& priv -> card , & priv -> hp_jack ,
10511051 1 , NULL , "Headphone Jack" );
10521052 if (ret )
@@ -1055,8 +1055,8 @@ static int fsl_asoc_card_probe(struct platform_device *pdev)
10551055 snd_soc_jack_notifier_register (& priv -> hp_jack .jack , & hp_jack_nb );
10561056 }
10571057
1058- if (of_property_read_bool (np , "mic-det-gpios" ) ||
1059- of_property_read_bool (np , "mic-det-gpio" ) /* deprecated */ ) {
1058+ if (of_property_present (np , "mic-det-gpios" ) ||
1059+ of_property_present (np , "mic-det-gpio" ) /* deprecated */ ) {
10601060 ret = simple_util_init_jack (& priv -> card , & priv -> mic_jack ,
10611061 0 , NULL , "Mic Jack" );
10621062 if (ret )
You can’t perform that action at this time.
0 commit comments