X-Git-Url: http://git.cascardo.info/?a=blobdiff_plain;f=sound%2Fsoc%2Fsti%2Funiperif_player.c;h=1ac2db205a0d090c71dc0d031a9c589a972f4730;hb=1630e843e104528ddf0208dfc692c70c9bd05a89;hp=ee1c7c245bc7980544eb2fcf60269dcc15714ea8;hpb=18751e2eb51261059e51e1a7cf5aec2fd5429608;p=cascardo%2Flinux.git diff --git a/sound/soc/sti/uniperif_player.c b/sound/soc/sti/uniperif_player.c index ee1c7c245bc7..1ac2db205a0d 100644 --- a/sound/soc/sti/uniperif_player.c +++ b/sound/soc/sti/uniperif_player.c @@ -1029,9 +1029,9 @@ static int uni_player_parse_dt_audio_glue(struct platform_device *pdev, regmap = syscon_regmap_lookup_by_phandle(node, "st,syscfg"); - if (!regmap) { + if (IS_ERR(regmap)) { dev_err(&pdev->dev, "sti-audio-clk-glue syscf not found\n"); - return -EINVAL; + return PTR_ERR(regmap); } player->clk_sel = regmap_field_alloc(regmap, regfield[0]);