From patchwork Mon Jun 25 14:31:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139854 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065623lji; Mon, 25 Jun 2018 07:34:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIrKyYY4N3QQygiolaNu9o4H6wkBCG8jICevk+Kj+viSQlJQR82ovhuVDC1lmtjkVXvqPss X-Received: by 2002:a65:4cc5:: with SMTP id n5-v6mr2555218pgt.451.1529937241839; Mon, 25 Jun 2018 07:34:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937241; cv=none; d=google.com; s=arc-20160816; b=zYj5oIb501WtmzHdMNsoSt/7of5HcYd7OVTCS86/Drk6bGSDaycu9/YU0VefcNX6lJ cepIWCqBfjfJ839350pn8ZK+WaIfMZFzfm8nbJUgRUbywcF8DcanRf03wHXz7shx78no gX1j3HfsQ2vLGtABVcMkteXz09JR4SRulwEFHRJQPGcfop7aYmC4ta+8SgCA486T9SEz AFZlUtAN8AVSpYLaydYdv88w+xTlX8Dwy4pLT9LN2onR0nzhZQDTfsdQ31QzhtV6g4X7 9pu0fsm5+Ab4Rb2ARmlJXlUv+fvXZcWFxQFNRYJTiV7TKflJlxt1b2wKpHsBCvc/z3n7 kU9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=hgvLfjpSJq04kHiAyB6ojv7qfliHXJDakYppcfVsRDM=; b=sPsSa79qLlZqSc9dffswtD52E2MjSPYWWPkxjDulMuZkf8wPvLMF3jUsE41t98KHKp uYKTU1MdRTcs4SO3IYlk6B1cgBdj+kUfigDOEhLTKT//BEs3hYlUPh0RXITYY6bqNFUx 03wV+1uI1wkaHlTvK/tnpt8gFRh7D4Q7a0C1x599o1DVkKIPGwdNPHT52QFyM9jXR+5Z Y+29a4CiXvjpdQaGn/Di+dv80e51eJ6hbrnMWTW+dNT8gYzReyKirX2iYrUbVVkxJ+V5 CbMLEvb8YaPPLkPwUwTSnZdQaTbo43SMBnmmoxE0xIiY3jNzSXh4uM8wsX5P5jTVhr8m LlIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FBxXvnxL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si12023098pgn.171.2018.06.25.07.34.01; Mon, 25 Jun 2018 07:34:01 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=FBxXvnxL; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934408AbeFYOd7 (ORCPT + 13 others); Mon, 25 Jun 2018 10:33:59 -0400 Received: from mail-wm0-f65.google.com ([74.125.82.65]:39869 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934387AbeFYOdw (ORCPT ); Mon, 25 Jun 2018 10:33:52 -0400 Received: by mail-wm0-f65.google.com with SMTP id p11-v6so10257406wmc.4 for ; Mon, 25 Jun 2018 07:33:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=005lWYnpFaAB/GgiL1XSdMJ4U7I3xmmlIXuLS5p2Q3I=; b=FBxXvnxLrrsUzeYypUxb4V40v11Fz0DJrtIfyZw4KT9IgabJdbestnujK/gsedtGBg lyRk9YYZ3FGjq4110iG4IheJT0VHX9exKQUgDzaWAqMvs4p6EB2cnkfXC5OthU/lEPec q1URi8DqDoSKSO3n/srBHs5NwPiuLvxp80H0Q= 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; bh=005lWYnpFaAB/GgiL1XSdMJ4U7I3xmmlIXuLS5p2Q3I=; b=M/Lezjsj6OK+vCSTKVH7VQr109nLMBXSsCf8anesryb1spBWbx3z1A1QSOQ8K9Rt3N SKUuUTXK5wRWTvAfjIBMG849P3dAvcruQNvuCqZqhV/iENApm6XDxDp0Tp9m7hRAkus0 1abRhQ6wXsD/eb8DXDbSGgzmCwkffTKveee8RwBNQWTxXLwHv/scHiN68rLDEWRV2QEm LxIHNbBr2eQjeuk63OpgCegE/5xntFYG9xKcmW66bY+TZ2dkpNRvhxQC8GfoIAw57g5T Qh8Pfxn8vXCOo8MazS46NwXUp9Sy/cqFwHEZOdNQJoZDaMwzuDhIAhyRR18lG1xK9Ibz ov1A== X-Gm-Message-State: APt69E05w5gS/PKLmqdrHWmq0UNcFAWQKVWsTZaFJAMsiT45z37eSFXO 6iHeUWmS+DDPKjJbUwiVpoYzjA== X-Received: by 2002:a1c:f906:: with SMTP id x6-v6mr1248629wmh.63.1529937230871; Mon, 25 Jun 2018 07:33:50 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.49 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:50 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 04/11] ASoC: qdsp6: q6adm: use of_platform_populate/depopulate() Date: Mon, 25 Jun 2018 15:31:08 +0100 Message-Id: <20180625143115.8346-5-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org Now that the child nodes have there own compatible strings, Use of_platform_populate/depopulate() instead of less common of_platform_device_create()/destroy(). Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6adm.c | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/qdsp6/q6adm.c b/sound/soc/qcom/qdsp6/q6adm.c index 9983c665a941..dfd5bc3ddd52 100644 --- a/sound/soc/qcom/qdsp6/q6adm.c +++ b/sound/soc/qcom/qdsp6/q6adm.c @@ -588,7 +588,6 @@ EXPORT_SYMBOL_GPL(q6adm_close); static int q6adm_probe(struct apr_device *adev) { struct device *dev = &adev->dev; - struct device_node *dais_np; struct q6adm *adm; adm = devm_kzalloc(&adev->dev, sizeof(*adm), GFP_KERNEL); @@ -605,22 +604,12 @@ static int q6adm_probe(struct apr_device *adev) INIT_LIST_HEAD(&adm->copps_list); spin_lock_init(&adm->copps_list_lock); - dais_np = of_get_child_by_name(dev->of_node, "routing"); - if (dais_np) { - adm->pdev_routing = of_platform_device_create(dais_np, - "q6routing", dev); - of_node_put(dais_np); - } - - return 0; + return of_platform_populate(dev->of_node, NULL, NULL, dev); } static int q6adm_remove(struct apr_device *adev) { - struct q6adm *adm = dev_get_drvdata(&adev->dev); - - if (adm->pdev_routing) - of_platform_device_destroy(&adm->pdev_routing->dev, NULL); + of_platform_depopulate(&adev->dev); return 0; } From patchwork Mon Jun 25 14:31:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139857 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065714lji; Mon, 25 Jun 2018 07:34:06 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK17L3+G4cEO9FiC4bNE9Jpa6soEXA+SacJLRiQpT5RcN1fEMqbnlVqhE0+r/NhSdB3V49H X-Received: by 2002:a63:7408:: with SMTP id p8-v6mr11046603pgc.275.1529937246036; Mon, 25 Jun 2018 07:34:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937246; cv=none; d=google.com; s=arc-20160816; b=UQ/lxB2OxvvWyszG5+TYhUWT1IIF4gog7bBDOfnei89mw0jYl7KjOar9E8SNBPrtJv Qg2NepyzqtO5R2qercF6s1CCAlOq86joMGrpN3JLR16BnoHCr235Aj2niQySgzqzRODX Nc2H8LM0KDA1FLkwT4eKNCxbiPcvceQlU4ysVTQV7CLh145cqNAL/eKhnbme0A8HePqq p4q0zl0S+qKOwCUC7zaGfgKUtUHfHf/qwSE0mjajiEj+a2SOH0ZMcJKoeAmKoqpHlyz3 yjiCAk++XA0KkNPbHLVqLjwpbcl9lZayog0q1Z4xGKiBHDPbvqfxgtpiOIxYnBF4G8v3 pITw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=XTXZAq8tv6yQQHhktM5P6m39Plb8YxbAqxagsyFYFHQ=; b=hYFg274yIT3ogtXCRMoEFnt9pvX2B1SNqddK1BwgmJtTuG4ByreAfNxbPFy5Clm2CH AWeWcE5vM8oiDswKCQhfyHBPMiR6fTmNasuKH2COwzei+gvRLUSMJLY3dsVZTb1gidUj Ls+5G8kxjcjbLwKHriFO5/hcjGqSgIKQrTAIx/ghruWVUsnrFAIoGVNMQgbv2imK636n IJU/Hu4ZxBNBhEEkRvexMg/xC/Yqk7HUSjbAGqpyPt8jv25u5/UQAxai5IzgoHUxbmCk z3kx41SwVgoDDqdku0ogBsfgo+5A7ti4e/ioqZJzKKNDHc0bnuRyyLywah6YVUlvG+tq ozvQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=F8HMbHA9; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si12023098pgn.171.2018.06.25.07.34.05; Mon, 25 Jun 2018 07:34:06 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=F8HMbHA9; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934386AbeFYOeE (ORCPT + 13 others); Mon, 25 Jun 2018 10:34:04 -0400 Received: from mail-wr0-f196.google.com ([209.85.128.196]:38805 "EHLO mail-wr0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934384AbeFYOd6 (ORCPT ); Mon, 25 Jun 2018 10:33:58 -0400 Received: by mail-wr0-f196.google.com with SMTP id e18-v6so13931835wrs.5 for ; Mon, 25 Jun 2018 07:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=AWyufF4c2UIUFxL13/xdjc2WvzWPtHMjA84glTPWrw4=; b=F8HMbHA9DVz8nD7ELuKumtZHNqklng2/+eMxlJjFAfJgZE5ujkj19OJ3UHL+OAK9Qw QYqOOyTSeWemJImBZQoweFEGdmgHE74NWWmeJTBVgobLgJxjVPXVTzNZX38PucUAn2XD gT3eJ8NEqVaf7KsRzgFsedc12ZWrJGhXBYdAw= 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; bh=AWyufF4c2UIUFxL13/xdjc2WvzWPtHMjA84glTPWrw4=; b=iJ+7/I0Njn9EHOJQW4GpCAMf56qElyTpjPmglRvkoAydGljNGWi23mimJ8ZGhqYKx/ wFFLJTIhWk9dqCVRIAISLDtjwymeKdj/54iIoh9j6YQDIhjmvyDWUJvALwiQxA3TE7Jw 0nKpdiQCcTrl5RhiD8LdLan9maL77asp3+4i19Naj+i5FWCNulof3Sw0PqZ7882YrMOr fvlokIuiHQ55NkzDTkg1BHxX4S6MslInHLibCRmKmo6e2nZ1iNe/31SqU2KTABEF9mMD +/ulTjfwZAcbcdXyuHHCB7IOXqkSIOhfCvfINhxMjTaLYmYz8mm95sod/3aGRHnFOwM1 fmMQ== X-Gm-Message-State: APt69E1Djl1G97EcaVY+5oCkF4fOY1DOGSwF7qfHun4YmCLaOOleAt1R gLtnn1orRsxHSJ3PFgZbG0/XgQ== X-Received: by 2002:adf:81ca:: with SMTP id 68-v6mr9590607wra.44.1529937237749; Mon, 25 Jun 2018 07:33:57 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.56 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:57 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 10/11] ASoC: qcom: apq8096: remove redundant owner assignment Date: Mon, 25 Jun 2018 15:31:14 +0100 Message-Id: <20180625143115.8346-11-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org module owner is already set in platform_driver_register(), so remove this redundant assignment. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/apq8096.c | 1 - 1 file changed, 1 deletion(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/apq8096.c b/sound/soc/qcom/apq8096.c index 561cd429e6f2..6e79fec7e789 100644 --- a/sound/soc/qcom/apq8096.c +++ b/sound/soc/qcom/apq8096.c @@ -245,7 +245,6 @@ static struct platform_driver msm_snd_apq8096_driver = { .remove = apq8096_platform_remove, .driver = { .name = "msm-snd-apq8096", - .owner = THIS_MODULE, .of_match_table = msm_snd_apq8096_dt_match, }, }; From patchwork Mon Jun 25 14:31:15 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Srinivas Kandagatla X-Patchwork-Id: 139856 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4065642lji; Mon, 25 Jun 2018 07:34:03 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIsQlX78CCjFdtnvg3TEblP1D3HyRU/OebZ6kdNZBPO2uZGkoleHL5GoiAPULfDJcoZLDEL X-Received: by 2002:a65:4809:: with SMTP id h9-v6mr11054110pgs.258.1529937242861; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529937242; cv=none; d=google.com; s=arc-20160816; b=JoGEvRE1U2zfD0Sfeld8b/lB91FinUbU/Mvcgi1vxBWOe5gjW9fq+KEYsOMExxG40S 3MEl2OWKxtQeiKSSeQe2MEqF/9dqACww0v7G11nEfOjlDCnE7DapehgH0JK4u6xTRvOl uxCSrXAjD0tUDrGgVozuMq14M5jHpqD9E+HzkFumqphpucBFIn0Lmu39gTsud5sIjxgY MbpaqIfUD+iBkB/esawB4ZrWGupuLWq6/k6y3ydKXwJxIBmwuRd52yDdZ4iDAul+vQBS 01c0f8wvmLnclybbFRwb76qC1nc99pNzCls5ziR6YsldJnbmMyOj2V6djskrtwRrPl7D fn2A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=b0gdBHrLe8kgfvPWBQEIDgkQwYVJAhof7uf2A7BuNFU=; b=fJi3q/pXUpB6NfIGVY2i9nIIjg7vwh1MOy8niQwudhw7E4z8YGdHcyZ1buyPG8s5HC AU+eNpwDKFyJae+MRrdZyF6DG5exCMOofgaQbc8+h9g3esYoBr62kq9Nj3sOZa0boI0f HZQjmcnTsMBAoatPTPs/pWPOD0DXeyAmoP/7rlapQkITENlkLeySo604fnbT8clmTaF3 nkVu3hiif7t3YBvN/l8jWHB/HDOFkug7VT0955MLTM/6dbBMyE0PpLDQpbssSQ8zX6Ky lDyQF1QN/mRsPa2TI6+f9yYnAJszgtCnFXG8M+V2LBrCVFOT9FmRJO2biHdKEzA3xsyH A3Pg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V7TRGhWR; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e12-v6si12023098pgn.171.2018.06.25.07.34.02; Mon, 25 Jun 2018 07:34:02 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=V7TRGhWR; spf=pass (google.com: best guess record for domain of linux-arm-msm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-arm-msm-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934397AbeFYOeB (ORCPT + 13 others); Mon, 25 Jun 2018 10:34:01 -0400 Received: from mail-wm0-f42.google.com ([74.125.82.42]:35653 "EHLO mail-wm0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934410AbeFYOeA (ORCPT ); Mon, 25 Jun 2018 10:34:00 -0400 Received: by mail-wm0-f42.google.com with SMTP id z137-v6so4572716wmc.0 for ; Mon, 25 Jun 2018 07:33:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=KWB6NY8t/omvKgNIyRy4P+yYxeMR+uXpqk4adQInmwE=; b=V7TRGhWRzGp/1OxGK8hqABT03Zv9oV2yZclH8iokFjTCT8cUqtaCDPuWT4hzicPMrE 2FEuWdHFc9IpBE17Br3cobZJjppGLJ2s0NuoYK6sdRddph+Eg/3UzgXO5L0yVRsosSgo 0HSyRzHJpppgp1qL0U5ZXIoS2zp9UZpURzGw4= 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; bh=KWB6NY8t/omvKgNIyRy4P+yYxeMR+uXpqk4adQInmwE=; b=uJujrEE7rXTi58EOTIJeS5jhiIf0qE+NsSP/wtBCKBkwaxUy6CFIkpjPJUUo5c6r7M 0JpAck12PN4O2UZ0zGDCQn7+rs4T3gVxqEfJRneyQ2J8pDXR/Viihd8eVZWnCYiJjFQA MxNHPHLWXIXT4LkjS1fpOCbCxIZieUeHCiU8VUyUfHb9Ba1pqTKbflkTPQw5ZqKCJr9l h9nuBlWSTh13+63FUtnF1na2M2TOZgXAwLLvskDB+SkHcRD4b3s+w9i03RcoPgKlfR8l j3aJgCYmy2WC1+Qv5JjlEuj/fGuM2sVuG2aSSt2T969ubNLErNR6xM1wsUhqhIKlA53k 8pXg== X-Gm-Message-State: APt69E2xj4KoGNx1uomgfB/St650hyROS+gjlq8EX6gl/2Nm5j5oi5lD r4979SDojHzaEANraWPVLEL96A== X-Received: by 2002:a1c:2c03:: with SMTP id s3-v6mr1227895wms.109.1529937238873; Mon, 25 Jun 2018 07:33:58 -0700 (PDT) Received: from localhost.localdomain (cpc90716-aztw32-2-0-cust92.18-1.cable.virginm.net. [86.26.100.93]) by smtp.gmail.com with ESMTPSA id s12-v6sm1321193wrr.43.2018.06.25.07.33.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 25 Jun 2018 07:33:58 -0700 (PDT) From: Srinivas Kandagatla To: broonie@kernel.org, linux-arm-msm@vger.kernel.org, alsa-devel@alsa-project.org, robh+dt@kernel.org, bgoswami@codeaurora.org Cc: lgirdwood@gmail.com, plai@codeaurora.org, tiwai@suse.com, perex@perex.cz, devicetree@vger.kernel.org, rohkumar@qti.qualcomm.com, linux-arm-kernel@lists.infradead.org, srinivas.kandagatla@linaro.org, niklas.cassel@linaro.org Subject: [PATCH 11/11] ASoC: qdsp6: q6routing: add proper error check Date: Mon, 25 Jun 2018 15:31:15 +0100 Message-Id: <20180625143115.8346-12-srinivas.kandagatla@linaro.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> References: <20180625143115.8346-1-srinivas.kandagatla@linaro.org> Sender: linux-arm-msm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-arm-msm@vger.kernel.org q6adm_open can return error pointer or a null in error cases. Fix this check this. Signed-off-by: Srinivas Kandagatla --- sound/soc/qcom/qdsp6/q6routing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe linux-arm-msm" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/sound/soc/qcom/qdsp6/q6routing.c b/sound/soc/qcom/qdsp6/q6routing.c index caf2f847a886..c18f808c7730 100644 --- a/sound/soc/qcom/qdsp6/q6routing.c +++ b/sound/soc/qcom/qdsp6/q6routing.c @@ -310,7 +310,7 @@ int q6routing_stream_open(int fedai_id, int perf_mode, session->channels, topology, perf_mode, session->bits_per_sample, 0, 0); - if (!copp) { + if (IS_ERR_OR_NULL(copp)) { mutex_unlock(&routing_data->lock); return -EINVAL; }