From patchwork Mon Jan 18 12:38:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 365572 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C0215C433DB for ; Mon, 18 Jan 2021 12:41:30 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3B1F92231F for ; Mon, 18 Jan 2021 12:41:28 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3B1F92231F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 145EF17AB; Mon, 18 Jan 2021 13:40:37 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 145EF17AB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1610973687; bh=VvNUuhj1iS+k+RKzgDaEElkaK85kTWVgprP86Qf8ad0=; h=From:To:Subject:Date:Cc:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From; b=sYtUDAFjmnHpbTaA+P+o8YFz/5mCbISKzAkE1K3sxKZBy9BFRGccBVhJAGu7ANjiG HdRzpCVMoNcYIVjjSlHgKGl95Apgf5cEXQuBZNTXyUr2a97l53fwau/XplRSAORnEz c6469HY4hb2+fuWfBJesxmLHij+IkappjYRWA4TM= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 4EB39F80166; Mon, 18 Jan 2021 13:40:36 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 3192DF8016E; Mon, 18 Jan 2021 13:40:34 +0100 (CET) Received: from mail-qk1-x730.google.com (mail-qk1-x730.google.com [IPv6:2607:f8b0:4864:20::730]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 8DA00F800C0 for ; Mon, 18 Jan 2021 13:40:27 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 8DA00F800C0 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="ADCMWUCx" Received: by mail-qk1-x730.google.com with SMTP id p14so18461946qke.6 for ; Mon, 18 Jan 2021 04:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=svau/GQaA1WyWyEiqC22YvV+pVe03axmyk//KuRqIvU=; b=ADCMWUCxEXx+QNyxHxjefSYJ067oMKPXigaCV0NpWKuyWeVIHjCpMyatmMFD0GwSTA Ts38koHKlgsNVVf0Yvw2ckOfUimmY+nlTnjamhkkMUFp24OHcWlQ7al2/s2AtL8G1b65 Y3VjSKwE/nofXPjkiy6iesEhgtyuAq8WjByLNMKxZR3NZqgdEcdCEBFbntfhf9HNHuL5 qYI7ZFIB/7EPd6os7rJXisGBCiDoizVacmUKfJchQiVrNudh0fDeeA4ngIKQFOOOrX4Z wKx3S2JHrcelNKiardPyFvWsoIaa31mRawfrWwnjm010mf6nLgSMTt+JUmngDIk/zU8I JFrw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=svau/GQaA1WyWyEiqC22YvV+pVe03axmyk//KuRqIvU=; b=qfIh+WOMZ4eCZn/9ePBrPvjQI+YzHhv1HetL6sldfBMvHPh+Fq8kGFbpY6nRZyvavB F2oi8BIlliQDxfEOV1lXsrgL/n7MleW8xQ/vhaSXLVV14CnXeI87dF5MfkkQAiyP51vj Xp8l+2dwktlEukoWu8mmrO8hn8Q0X/xK/pyOgnAB651eUwjQmfIGIbHGpcRsMgEEtwnl RaS8whw/A22bCNDLjkgDxuO/2OfWqcmwo9YOygqAheVukyBmPNtKXLnLWRIWDQV1EAi8 9Imhsp0VnYFM3Qe/tgkBCLfIcgRntsG9pJ18wPNLNATV5OJv0QSIXLSH/UPuV+/5O9od MF5Q== X-Gm-Message-State: AOAM533l2GiCDq2HLdha7wfGifspaeBer69ayuZDpxW+w5tdAZR+tUp9 9Kv/262HQZ974pfK+L8HseM= X-Google-Smtp-Source: ABdhPJzI4srkD1NIa2+NkLeU4rAMNgAXY2+s0NWOrgEBvOXGWcsVgL8w2nZBEJKE6cQLgrhSheKnVw== X-Received: by 2002:a37:27ce:: with SMTP id n197mr24095433qkn.220.1610973624971; Mon, 18 Jan 2021 04:40:24 -0800 (PST) Received: from localhost.localdomain ([177.194.79.136]) by smtp.gmail.com with ESMTPSA id q92sm10022654qtd.48.2021.01.18.04.40.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 04:40:24 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Subject: [PATCH 1/6] ASoC: fsl_ssi: Use of_device_get_match_data() Date: Mon, 18 Jan 2021 09:38:10 -0300 Message-Id: <20210118123815.1630882-1-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org, Fabio Estevam , shengjiu.wang@nxp.com, timur@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The retrieval of driver data via of_device_get_match_data() can make the code simpler. Use of_device_get_match_data() to simplify the code. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_ssi.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 404be27c15fe..db4ba5f22b77 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -1397,18 +1397,11 @@ static int fsl_ssi_probe_from_dt(struct fsl_ssi *ssi) { struct device *dev = ssi->dev; struct device_node *np = dev->of_node; - const struct of_device_id *of_id; const char *p, *sprop; const __be32 *iprop; u32 dmas[4]; int ret; - of_id = of_match_device(fsl_ssi_ids, dev); - if (!of_id || !of_id->data) - return -EINVAL; - - ssi->soc = of_id->data; - ret = of_property_match_string(np, "clock-names", "ipg"); /* Get error code if not found */ ssi->has_ipg_clk_name = ret >= 0; @@ -1492,6 +1485,7 @@ static int fsl_ssi_probe(struct platform_device *pdev) return -ENOMEM; ssi->dev = dev; + ssi->soc = of_device_get_match_data(&pdev->dev); /* Probe from DT */ ret = fsl_ssi_probe_from_dt(ssi); From patchwork Mon Jan 18 12:38:11 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 365571 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 876FDC433E6 for ; Mon, 18 Jan 2021 12:42:25 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BCE722231F for ; Mon, 18 Jan 2021 12:42:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BCE722231F Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 194AC17FA; Mon, 18 Jan 2021 13:41:33 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 194AC17FA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1610973743; bh=ULQ7jcqZC2eaNGucxdFbtpqw2lw6reMMFN5QCYuXsRY=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=INlQhEygDbhriOkBMuT2g4WnnCY1+RvSzg6v57DP72ni+/NlU0m3sPMPwiKWN1+z0 QSCppxQ3UPp0F+jjSWktNo3tDNEBZZCqSMySNtH8Qzor0tqrWoHNICvH8ueyxqmFPu 8ZO3yNl0Nzdbpaq4R7I0C1CaPFy3Gx75MDIsPnSc= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id A81ECF8016E; Mon, 18 Jan 2021 13:40:37 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 957BEF80218; Mon, 18 Jan 2021 13:40:36 +0100 (CET) Received: from mail-qt1-x830.google.com (mail-qt1-x830.google.com [IPv6:2607:f8b0:4864:20::830]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id B47E6F800E7 for ; Mon, 18 Jan 2021 13:40:29 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz B47E6F800E7 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="tNYAQe4U" Received: by mail-qt1-x830.google.com with SMTP id h19so11063051qtq.13 for ; Mon, 18 Jan 2021 04:40:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UX/cKx68h768c+qYb1NW5l7xmxav6pdEySWoiWZNisY=; b=tNYAQe4UWY729TposfJ29q/T2iy6005f+jDtRIQa4hGPrNpDsoYcfAcw/UnfQ/z4Vz SK7tcETcZwyt2CAQuC9Ib+xT8dHHkDRYf194QKG3gOElhSwz0KKL3efiB7/HDxhPQmiO gdyqePqAGyhexMFHc+NU9na9HK7+6frzQpQZ5UYU3LK5o1w+Dau/X/fu57ycqCrFAVyl 0nOS2u5P1ucWXjeru9XliKwFHSujBqWeUYcSB89tBp7t0W4xmnSthIs0AvixkIXaX2rK PL9mkKloGZRrVrKEAy6I2//OFta73tV/+yxoktaGTRtTZavXIjHMkxUaXkuPAUxhjn7v XIsw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UX/cKx68h768c+qYb1NW5l7xmxav6pdEySWoiWZNisY=; b=tQPC0k9p5yX+T/Zt0+Xi9NCEt4bxa1TMR+O6LSFIVQJplDmhZ9vLoUFxbE50aqQLt3 aft5sPrx1QCuvGa878oYEd4D7WO6dzsC3N0thWWVFowPm/j48stb5hMZ4V9TweBXpeFR Cs0T3FKD+qFVXi+dtEEretrRdM0NHfXwu7wbfypf5pHxggLacpb1e62euPELxvKCYE22 ORSgViS1iuc7HlnyJLLOBQKLDNfySjvTuw9zmqLjgjfkaafjRfZvVFpnL7Xid5OEyg+L 0hgnMqUzZE6lLrc8y7GvdLHz2Fk6jec0Gjy1aAMI9iK58hlgBJvwIversgQqJB+n6eNC foAQ== X-Gm-Message-State: AOAM531mFKD1O5RFjo88tR7Ie+1iFxrTWIANMQrWbgh8b5mrn2dfTlDa VOxdGxXJdlTAZsyF+dxF5Ko= X-Google-Smtp-Source: ABdhPJxcAIsTTro4Q1uMN/5/6mi0fAG9IVBoZyKHUYGepestaZT5ILrijELhmJPNoDmS3jH0KuHI8g== X-Received: by 2002:ac8:1c92:: with SMTP id f18mr22669850qtl.234.1610973628083; Mon, 18 Jan 2021 04:40:28 -0800 (PST) Received: from localhost.localdomain ([177.194.79.136]) by smtp.gmail.com with ESMTPSA id q92sm10022654qtd.48.2021.01.18.04.40.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 04:40:27 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Subject: [PATCH 2/6] ASoC: fsl_micfil: Use of_device_get_match_data() Date: Mon, 18 Jan 2021 09:38:11 -0300 Message-Id: <20210118123815.1630882-2-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118123815.1630882-1-festevam@gmail.com> References: <20210118123815.1630882-1-festevam@gmail.com> MIME-Version: 1.0 Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org, Fabio Estevam , shengjiu.wang@nxp.com, timur@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The retrieval of driver data via of_device_get_match_data() can make the code simpler. Use of_device_get_match_data() to simplify the code. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_micfil.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index efc5daf53bba..8aedf6590b28 100644 --- a/sound/soc/fsl/fsl_micfil.c +++ b/sound/soc/fsl/fsl_micfil.c @@ -637,7 +637,6 @@ static irqreturn_t micfil_err_isr(int irq, void *devid) static int fsl_micfil_probe(struct platform_device *pdev) { struct device_node *np = pdev->dev.of_node; - const struct of_device_id *of_id; struct fsl_micfil *micfil; struct resource *res; void __iomem *regs; @@ -651,11 +650,7 @@ static int fsl_micfil_probe(struct platform_device *pdev) micfil->pdev = pdev; strncpy(micfil->name, np->name, sizeof(micfil->name) - 1); - of_id = of_match_device(fsl_micfil_dt_ids, &pdev->dev); - if (!of_id || !of_id->data) - return -EINVAL; - - micfil->soc = of_id->data; + micfil->soc = of_device_get_match_data(&pdev->dev); /* ipg_clk is used to control the registers * ipg_clk_app is used to operate the filter From patchwork Mon Jan 18 12:38:12 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 366237 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7BA12C433E0 for ; Mon, 18 Jan 2021 12:42:25 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 800BB227C3 for ; Mon, 18 Jan 2021 12:42:24 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 800BB227C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B057B17E3; Mon, 18 Jan 2021 13:41:32 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B057B17E3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1610973742; bh=Z+5VCyGoDHyvsSOb37JRuPCcVY5rqQXMOeVO3QsO97c=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=eJdAD16gNV+CXQKTTvW7p3FTfRobwlD4PhvES060/B3yEkRcohG5ySsWvg8kPJK4G Wx03YggPEKUQGPG58aCMVU0Gm0M9Q0lp/Tbzf0/frwl2TPJ2621S5r18FflH6TVzsI iEwmKtR56lxWMEkMcl4sdk1BDMY8+L83DzkGwA+8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 85CE1F804C2; Mon, 18 Jan 2021 13:40:42 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5566BF804C2; Mon, 18 Jan 2021 13:40:40 +0100 (CET) Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id A398AF804BD for ; Mon, 18 Jan 2021 13:40:32 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz A398AF804BD Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="DyO3/KlA" Received: by mail-qk1-x72a.google.com with SMTP id d14so18418177qkc.13 for ; Mon, 18 Jan 2021 04:40:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=rJGQe5DLUCujhheGlYdjnKqoPtjInXeGbwGR6AhkBpc=; b=DyO3/KlA72FQJVvSGPoTkWxVcPqPgx+JP29jShdtRSWuu/m05ZslSwa/ZOQD0Uqhow XrMNWPpJQOetceWLdFJitUD4wm38FCQnTMvDchVt6XmLBsyFUeTD1gKRXZD2UAGpAdb5 tJl3sIne9fBIH8nDTARYcZL6XxHL16pNr+Wwm4E5h06MEmHI2H4mqAXC1K26zfOW/nOj CV7JgYDysNV0zIq0EwxdRV1yIUP0AM5BgsHwt6x1ik5rfEQc7jeE/xEgpX6yZ+6FDQUv S2v9sH9qu5jDDIFEiXN/nfsOM49LoFLJNumjY12wahyHAV+kt5vpRL6c7pv0ZDuxdgp8 kDTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rJGQe5DLUCujhheGlYdjnKqoPtjInXeGbwGR6AhkBpc=; b=uoIzeCqlSsJqbweYH/81aUk7B/dVJBBjU+r5eDrWTHzB043Yc+SJcxzF1dJVHKlHmx Kxc01+giMUJnI6EUfneGir5v+VPrT74X5vFYXGUJFR3lwPM0beP92kKR5KZ/2x+lCHll yCKeja6VlbBUC9kExNfdMGHwe15XH6Gw78yjGk6cCs7ZxS7WNY8Lt+nKfzuwSU4TLsaI hIBRphxNf7i7eqTq/7CTTnFgR9zknxz4MI54DRreRmZJ9dXD7Knr1kgns+VTKWPRHqBs U+0xdkkzY8MhNO9yI3bvHLIcCH2xfB4aZoy6/gZL2hCtSag41a927FiZ9C31xCxsNyjl MhdA== X-Gm-Message-State: AOAM531a4yx9lKahsWrai8kXHWT4KvgwX3rn6qmBREOWEC59PGedL1T/ EpN4Ka6o0l3ECm9Dn+QIDHo= X-Google-Smtp-Source: ABdhPJxv3vOdtq+qd+sfmcMcusl9eGeyuVlFf+I2b6pMJt9n+nQN6DgnS1hd+kQqJIr3bkFHui5Sdg== X-Received: by 2002:ae9:c013:: with SMTP id u19mr23823029qkk.59.1610973631191; Mon, 18 Jan 2021 04:40:31 -0800 (PST) Received: from localhost.localdomain ([177.194.79.136]) by smtp.gmail.com with ESMTPSA id q92sm10022654qtd.48.2021.01.18.04.40.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 04:40:30 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Subject: [PATCH 3/6] ASoC: fsl_xcvr: Remove unused of_id variable Date: Mon, 18 Jan 2021 09:38:12 -0300 Message-Id: <20210118123815.1630882-3-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118123815.1630882-1-festevam@gmail.com> References: <20210118123815.1630882-1-festevam@gmail.com> MIME-Version: 1.0 Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org, Fabio Estevam , shengjiu.wang@nxp.com, timur@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The of_id variable is not used, so just remove it. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_xcvr.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index 3d58c88ea603..dd228b421e2c 100644 --- a/sound/soc/fsl/fsl_xcvr.c +++ b/sound/soc/fsl/fsl_xcvr.c @@ -1130,16 +1130,11 @@ MODULE_DEVICE_TABLE(of, fsl_xcvr_dt_ids); static int fsl_xcvr_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; - const struct of_device_id *of_id; struct fsl_xcvr *xcvr; struct resource *ram_res, *regs_res, *rx_res, *tx_res; void __iomem *regs; int ret, irq; - of_id = of_match_device(fsl_xcvr_dt_ids, dev); - if (!of_id) - return -EINVAL; - xcvr = devm_kzalloc(dev, sizeof(*xcvr), GFP_KERNEL); if (!xcvr) return -ENOMEM; From patchwork Mon Jan 18 12:38:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 366236 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 9DCB7C433DB for ; Mon, 18 Jan 2021 12:43:07 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 13899227C3 for ; Mon, 18 Jan 2021 12:43:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 13899227C3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 8242B17FB; Mon, 18 Jan 2021 13:42:15 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 8242B17FB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1610973785; bh=LZn7qqsqPk2XSv6r0cys1yFe/NZJIIhMg01HlkydHuA=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=JP+Smx8dugiPSGORchIKxt5bgVeJxLOpty6gp0ZkB57q+GN9aj/5VFNKjjL21cQxT f5pflTkfszElunulbuABzbrK273H2Hq8dEyaVmSm1UeB3TS5/ikuKH/JAhwpNKwhJT oa+MjGmmJLTOe3fyYtCKZRRdJbE5jcZIOXQB95xk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 810E1F804CC; Mon, 18 Jan 2021 13:40:44 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 32B46F8026B; Mon, 18 Jan 2021 13:40:43 +0100 (CET) Received: from mail-qk1-x731.google.com (mail-qk1-x731.google.com [IPv6:2607:f8b0:4864:20::731]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 7F28CF8026B for ; Mon, 18 Jan 2021 13:40:35 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 7F28CF8026B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="Yc7VdFXJ" Received: by mail-qk1-x731.google.com with SMTP id 186so18459177qkj.3 for ; Mon, 18 Jan 2021 04:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=R5U3n8kNssmwRQPCwUYtUeJSgG0vkw7lShI1uTuBirI=; b=Yc7VdFXJCOiZqMrprGqvr2VpU0/raLGQDI3J3b+rUq8av28nNh9ypc/10JVJTSTVeL zr1Z/m2kDTlZStKAT4dXHNF31bhoCeZF22QqMt/xuD6BTLHvQQUYAevUtKzZrD7ClIa+ OO0ElZSkU2IfHW7SDg1zIyR5X+ASuozlyVWeYYYrWkUxgbAPV9iD3ZCeszWpZIgFUvu3 IyQyRkQXGhdh4dOqSZwVe+sBiGctn5PeS+KMxBJQya3iyyypCAX7FtVcfG4SB5yG0H0i U0eUKN5FfGij7IySLie/67F3XjYCnPALfiAsMjk3gXlChnRPIPvRCpKBx+uppn+zehZQ ISdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=R5U3n8kNssmwRQPCwUYtUeJSgG0vkw7lShI1uTuBirI=; b=ANScb7uftqNSfUXUwSMA8jyp01JM8vqza7ZzwZX/mqyVVD51P+BcJIXTxVqBPYuUpn RjSJk/YpQTFWOvwlfrfIG2Rx7r9CS0Nu69VGHWOy37Y1TwxSAjK+iPaGlmzf8e8DFuag NNqJqB2c9IeZT7lVX4YmJLif8kaiib+lek+3F1LucdEJfAaRpPTDAWYeB0EJgLkZPLdG r9+kcEAn39Nj/klxlG5TJM3GZh6egMsemm3jRkoxLks3JaKJiKGNmxGhvFwcjELaBtAJ aTxW0OKhnuhjXMigfIUPEYWg+prjSHNysVnynZbYdtC1DkArEoeY2+GHEft2QqsxxWR0 7JNw== X-Gm-Message-State: AOAM532vKjksXHSwQGo7FCpIWDCzJTKwafEsX88Eu5pg6qInYaW4+f/B BKuqzRHzuJqo8Wg43she2MQ= X-Google-Smtp-Source: ABdhPJwIL0SCOctWsTug0ue7r5ar70CH59LN3taG6IG0ZnEHm/9VLpd/AyF2zLFiLkBfg11KOJI15g== X-Received: by 2002:a05:620a:b0f:: with SMTP id t15mr24645531qkg.485.1610973634154; Mon, 18 Jan 2021 04:40:34 -0800 (PST) Received: from localhost.localdomain ([177.194.79.136]) by smtp.gmail.com with ESMTPSA id q92sm10022654qtd.48.2021.01.18.04.40.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 04:40:33 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Subject: [PATCH 4/6] ASoC: fsl_asrc: Remove of_device_get_match_data() error check Date: Mon, 18 Jan 2021 09:38:13 -0300 Message-Id: <20210118123815.1630882-4-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118123815.1630882-1-festevam@gmail.com> References: <20210118123815.1630882-1-festevam@gmail.com> MIME-Version: 1.0 Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org, Fabio Estevam , shengjiu.wang@nxp.com, timur@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The only way this driver can be probed is via devicetree, which always provides driver data. Remove the unneeded of_device_get_match_data() error check, as it can never fail. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_asrc.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl/fsl_asrc.c index 02c81d2e34ad..c325c984d165 100644 --- a/sound/soc/fsl/fsl_asrc.c +++ b/sound/soc/fsl/fsl_asrc.c @@ -1083,11 +1083,6 @@ static int fsl_asrc_probe(struct platform_device *pdev) } asrc_priv->soc = of_device_get_match_data(&pdev->dev); - if (!asrc_priv->soc) { - dev_err(&pdev->dev, "failed to get soc data\n"); - return -ENODEV; - } - asrc->use_edma = asrc_priv->soc->use_edma; asrc->get_dma_channel = fsl_asrc_get_dma_channel; asrc->request_pair = fsl_asrc_request_pair; From patchwork Mon Jan 18 12:38:14 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 365570 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 04749C433DB for ; Mon, 18 Jan 2021 12:43:16 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 4C85D2253A for ; Mon, 18 Jan 2021 12:43:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 4C85D2253A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id B5BA01827; Mon, 18 Jan 2021 13:42:23 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz B5BA01827 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1610973793; bh=HRAQunMgu/h1mJX5ZUHMI+tQCqYcLBGGel7sOgstwsY=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=qApgumMcBC2TSsVRJmKz9q4jAfT1NrWauxG8nKfhJbCdEOxm6GM+JvZckTHhmou1B v2GWCOa5LjuydPm1iuC3PWJRE4n7AGhiax93KkAmPDultDmCuCk2noflf2h79y0txz KRWH1fd263hm6Hz3A5Hzw/inZdVRwHOWdifgYl24= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 784A0F804DF; Mon, 18 Jan 2021 13:40:48 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 9061CF804DF; Mon, 18 Jan 2021 13:40:45 +0100 (CET) Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 22E62F8026B for ; Mon, 18 Jan 2021 13:40:38 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 22E62F8026B Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hR6f8o1+" Received: by mail-qv1-xf2c.google.com with SMTP id az16so7390693qvb.5 for ; Mon, 18 Jan 2021 04:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=s9kZrXrP1ftv/2VBylHEr0nu+FeRKJe/CjWJntpZsFQ=; b=hR6f8o1+pjF9o91tgZE3uunTsyOV/4JH4qynXQO1KxwfpEoFc5pQyVaAgB0aRHXbyj cnsiy1YvLnc27humvTCcgy1FxqrutjRgsfXc7eD0GjPGAzpuw80id0AjgkzbYvLdIWVJ /nHYDlSeAlMcEOZq/b0UkX2zqEsjLXhXW8gdnbAyOHtmw3jEPix40sKqCQ1sPZ2p5yiC sbN8gHI1rsbnfUEDDBXJ2SDmyVNOBdaQ0tyOkgU2dD26vAVe+DgqchQ7Xz3/GpdEraYy 1nqffEeHQHSeyvfyZedjO/8/8DnCTBLx6Neeza716+uMA47Tx8fgjqeITv40YHlL+qlN C9Xg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=s9kZrXrP1ftv/2VBylHEr0nu+FeRKJe/CjWJntpZsFQ=; b=fhDf1uSiaChLIbiHBtVmQ8amVzuYC2zJjXOPaTMVPU8TtOM2oDR9wCgMM8vriKsGM5 KS1hMeRX6YN7NCTCqZIkYdnvVqN/JEg86Fs44qN49OLJP0itA/wLHLhSpzxfFqoxkQ7G tAsDx73loCt28Y0kDjjdzVKmau36N2nx3H4FLVA/D8bspEONbvZ5Y8pkqjU3FwtLVdlh ox8lL5OW8WlBQQJNpOdlP7dCBl2ycL4PI3tYjbEr38yZi2ih39Qc4dHmtZRDd+CIc9uW 9YcVpB58rtc/lRyAb02dU4R8WfYdTUO1aLWomVX836ogu63c2/dN3M80Vz2aRwTweMLn P/bg== X-Gm-Message-State: AOAM5300jX2nm3J/VtzXgA8YDZySN9eS+ICyrpf6/zpt1xu/COPzF8Ul +DusBMPLjiCF0rcCFM94tyU= X-Google-Smtp-Source: ABdhPJyKtdasELqPTC7gbDd+bfs7q8RNBiRhQWNHQltb6zWzcftNvNCVuaNakiDQvOHsYwgQh8rYeg== X-Received: by 2002:a0c:a525:: with SMTP id y34mr23586624qvy.37.1610973637465; Mon, 18 Jan 2021 04:40:37 -0800 (PST) Received: from localhost.localdomain ([177.194.79.136]) by smtp.gmail.com with ESMTPSA id q92sm10022654qtd.48.2021.01.18.04.40.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 04:40:36 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Subject: [PATCH 5/6] ASoC: fsl_esai: Remove of_device_get_match_data() error check Date: Mon, 18 Jan 2021 09:38:14 -0300 Message-Id: <20210118123815.1630882-5-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118123815.1630882-1-festevam@gmail.com> References: <20210118123815.1630882-1-festevam@gmail.com> MIME-Version: 1.0 Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org, Fabio Estevam , shengjiu.wang@nxp.com, timur@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The only way this driver can be probed is via devicetree, which always provides driver data. Remove the unneeded of_device_get_match_data() error check, as it can never fail. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_esai.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/soc/fsl/fsl_esai.c b/sound/soc/fsl/fsl_esai.c index 39637ca78cdb..614e22a95f53 100644 --- a/sound/soc/fsl/fsl_esai.c +++ b/sound/soc/fsl/fsl_esai.c @@ -967,10 +967,6 @@ static int fsl_esai_probe(struct platform_device *pdev) snprintf(esai_priv->name, sizeof(esai_priv->name), "%pOFn", np); esai_priv->soc = of_device_get_match_data(&pdev->dev); - if (!esai_priv->soc) { - dev_err(&pdev->dev, "failed to get soc data\n"); - return -ENODEV; - } /* Get the addresses and IRQ */ res = platform_get_resource(pdev, IORESOURCE_MEM, 0); From patchwork Mon Jan 18 12:38:15 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 366235 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 701D6C433DB for ; Mon, 18 Jan 2021 12:43:50 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BAA282253A for ; Mon, 18 Jan 2021 12:43:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BAA282253A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 0D57D17FE; Mon, 18 Jan 2021 13:42:58 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 0D57D17FE DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1610973828; bh=5+VSSL7E7s8nfraB6MAXlFT043R6DEISbnvI7eVIHvE=; h=From:To:Subject:Date:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=NYn1hsIiGxwURcOn+dDWRz0o+32G3cmHOP9RT+AiOF9TgDErczYITT/w5CpqezyDL VP74Q4WVFrlVD6tvOHM3mLuC0M/5kMMamQiHv88Ma3+NVu4HGz3ALt086xDXdWrhXI HX+rWLoP90zWRM4orMFs4QnShUgmOALUYmOtZ5D8= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 5D758F804D8; Mon, 18 Jan 2021 13:40:52 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 73EA1F804E3; Mon, 18 Jan 2021 13:40:50 +0100 (CET) Received: from mail-qk1-x736.google.com (mail-qk1-x736.google.com [IPv6:2607:f8b0:4864:20::736]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 67114F804D8 for ; Mon, 18 Jan 2021 13:40:41 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 67114F804D8 Authentication-Results: alsa1.perex.cz; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cGrdPsah" Received: by mail-qk1-x736.google.com with SMTP id z11so18458127qkj.7 for ; Mon, 18 Jan 2021 04:40:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=EVMiEioA7w3i8Gm+/v1dG2o2kJb5f/Py056tr8Ni5fk=; b=cGrdPsahLc2fv5+75uubp3CAhB07L/YfIuCmsyN3HbP3r+XBiQ69UrzslLSo9AhPMx WTd5G0eazdzqQ62W8ptRC1AYS5muzempZo5opdXrvz+20STlyk2aWX7EGouPsg3Aw+8i n/SZNQC3nY4az/GrhPEnvzXfB+xYLnTAMLXfG0juXqIR0PSb2kJddne2me/WCo+/Ng+y 4pqNDiRWwmB0OqqMXpqQn0U92AIjkBJqBBEA/O6+70nJiAnAq8yu7EltQmD3qyj5mM1R 6tj021Cz76kGGveElxUT+HHQOarzWYCiX5ZWQ6f2NkoPKLLH11i8SLI3LGMxLmgyaqqw kCNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=EVMiEioA7w3i8Gm+/v1dG2o2kJb5f/Py056tr8Ni5fk=; b=c4li/BqK/wNi6N0zaytaJW8OFFH9HamyGcUugOYjspkg5janX12ZvwUTFkzoTvlF4b K4h7PKi6ww9poffCzrPyvPM6V88bc1YgXfPlAprHPkoR2k5dpBQgEo40eJeJsa40/Zfa 9VmLss7OTKv5EAG01U7O/cHEaQqF5xGt3q2xnfMp72oHriCsPEKnpHXBiOmi7w0C4PdV fGN1IWEeKWLcg9QDYcYSNoFD2celeD/bA9frOkGXkaFi9rksLmuaXr3tupGykQbplSrH iIDYtCjPEBuEWzJEpJaZsyw9OIi+B8xop0/T2fW3WazwOwZRL9ouE1R6VLLC5q28VA7z IURg== X-Gm-Message-State: AOAM532GwxnaXmoEU04OjTEne8vaREhxCeD1O13xTO/Q9WBeL/VprXtt Cj4z1jX2IS6MDUeX18lUfqOvlr5CrRQ= X-Google-Smtp-Source: ABdhPJz3ZqTeH7RGTAPGCH1U/2xF1L+iq843AmnV4xeEQL/kV0t9NAhtgLwbkg0fEeV3982P4c9+Ug== X-Received: by 2002:a37:57c7:: with SMTP id l190mr24329862qkb.487.1610973640429; Mon, 18 Jan 2021 04:40:40 -0800 (PST) Received: from localhost.localdomain ([177.194.79.136]) by smtp.gmail.com with ESMTPSA id q92sm10022654qtd.48.2021.01.18.04.40.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 18 Jan 2021 04:40:39 -0800 (PST) From: Fabio Estevam To: broonie@kernel.org Subject: [PATCH 6/6] ASoC: fsl_spdif: Remove of_device_get_match_data() error check Date: Mon, 18 Jan 2021 09:38:15 -0300 Message-Id: <20210118123815.1630882-6-festevam@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210118123815.1630882-1-festevam@gmail.com> References: <20210118123815.1630882-1-festevam@gmail.com> MIME-Version: 1.0 Cc: nicoleotsuka@gmail.com, alsa-devel@alsa-project.org, Fabio Estevam , shengjiu.wang@nxp.com, timur@kernel.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" The only way this driver can be probed is via devicetree, which always provides driver data. Remove the unneeded of_device_get_match_data() error check, as it can never fail. Signed-off-by: Fabio Estevam --- sound/soc/fsl/fsl_spdif.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index 5fa178f3f497..b4d3b04694bf 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound/soc/fsl/fsl_spdif.c @@ -1305,10 +1305,6 @@ static int fsl_spdif_probe(struct platform_device *pdev) spdif_priv->pdev = pdev; spdif_priv->soc = of_device_get_match_data(&pdev->dev); - if (!spdif_priv->soc) { - dev_err(&pdev->dev, "failed to get soc data\n"); - return -ENODEV; - } /* Initialize this copy of the CPU DAI driver structure */ memcpy(&spdif_priv->cpu_dai_drv, &fsl_spdif_dai, sizeof(fsl_spdif_dai));