Skip to content

Commit 65294be

Browse files
robherringgregkh
authored andcommitted
misc: atmel-ssc: Use of_property_present() for non-boolean properties
The use of of_property_read_bool() for non-boolean properties is deprecated in favor of of_property_present() when testing for property presence. Signed-off-by: Rob Herring (Arm) <[email protected]> Reviewed-by: Hari Prasath Gujulan Elango <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 9b50fe1 commit 65294be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/misc/atmel-ssc.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ static int ssc_sound_dai_probe(struct ssc_device *ssc)
153153

154154
ssc->sound_dai = false;
155155

156-
if (!of_property_read_bool(np, "#sound-dai-cells"))
156+
if (!of_property_present(np, "#sound-dai-cells"))
157157
return 0;
158158

159159
id = of_alias_get_id(np, "ssc");
@@ -176,7 +176,7 @@ static void ssc_sound_dai_remove(struct ssc_device *ssc)
176176
#else
177177
static inline int ssc_sound_dai_probe(struct ssc_device *ssc)
178178
{
179-
if (of_property_read_bool(ssc->pdev->dev.of_node, "#sound-dai-cells"))
179+
if (of_property_present(ssc->pdev->dev.of_node, "#sound-dai-cells"))
180180
return -ENOTSUPP;
181181

182182
return 0;

0 commit comments

Comments
 (0)