Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9051067rwl; Wed, 11 Jan 2023 00:24:36 -0800 (PST) X-Google-Smtp-Source: AMrXdXvkmdwJe4++NPPYBmfWWnce+EgQeNWZEP9eFknTSQfYmB2JaXaQsHthphcs4Y+PAbPsnJb9 X-Received: by 2002:a17:903:2603:b0:192:a4d5:55b8 with SMTP id jd3-20020a170903260300b00192a4d555b8mr1854103plb.52.1673425475933; Wed, 11 Jan 2023 00:24:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673425475; cv=none; d=google.com; s=arc-20160816; b=iUrqmnRhN4jGgI6PcdWXjb1pWDndz2toMNb04ED4EQcAKlo15ni1i/Cakpupjl/edl /BHcOSD2ji/xk+cqC5p9R1Rj2VQ8pfTpkzgsXqmMRVMMeR1CQX4ryQrlajryuLLO7T5E gKEPfuyA0dKnu4ZydaOcalU46yjKZ1XX4DYKC/tMyvfN2VB/UU4KmkTN9ckN3vm0Ai+u KYDysJXVIBTQuQoHYGeFpolxUTRDkMCIakqvzKog5356RO8kUPCKMaFaaCAjpwgNcc/B mnGlI3mBc1KDjx8jX/k6mLUmpm8yDfV4TlWwNW1loZ5UjixlpRYBCBrXIXuxvymqoFUW B2lg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=hMXpYmpCvCOiLUQR2nEoaW8063HXu4J3oT2lYg3ERPk=; b=A3jhfBJ2R2++oBDWIGdN+R6rKal2k+q1oUtNawlGubs12wuNmfco9eDvmkZdiBn5gb 68Sx5mVWS0au/Yh8pfa+79CvU36zxj7CJjMssJGRiUrTMp7HcBLqtSyv046AowXU9wIq sZgTLbxmhz3mePRs6DQrI5YQPDxiooa7GlO7eZ5Q+oMz3WISTYJdR559OYy6dU8VWSIZ kfHvPBlwZeGmQ37F/f7567V84xiRVEWN0H6K1qGcvTEyWlSyouvAjdJwpfdHhev8XDzM v8RSOm9WsbTcJrPMy9v8xtzk23sD0hDWF0mdps8GHFVOFRTFOtWJyHXnC3cBFF99fbyz lTww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mDZwUDXx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a21-20020a63e855000000b004a587b86b62si14189755pgk.786.2023.01.11.00.24.28; Wed, 11 Jan 2023 00:24:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b=mDZwUDXx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236622AbjAKHrD (ORCPT + 53 others); Wed, 11 Jan 2023 02:47:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50546 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235794AbjAKHpr (ORCPT ); Wed, 11 Jan 2023 02:45:47 -0500 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18F3110FCC; Tue, 10 Jan 2023 23:45:38 -0800 (PST) X-UUID: ecc5540e918311eda06fc9ecc4dadd91-20230111 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID:Date:Subject:CC:To:From; bh=hMXpYmpCvCOiLUQR2nEoaW8063HXu4J3oT2lYg3ERPk=; b=mDZwUDXxjmjMTwpPX9YjAwvWkiIcXpxIvDGuphQ4Op8pkBrnOxN1ZbciCPdjz+AFcLII9lLw0Ru04Ge5WZHTQj4Aea6s92PRxRACdNiPZ9OCLc1PMw09nGmXaq/3CVzu0ZGs/RqBTA9yQMX5PxZ4IxZRE3PZWrJ/rtaM1aurBpk=; X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.17,REQID:0c73da96-0641-42fe-8f34-dcaa62aa4e1e,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Release_Ham,ACTIO N:release,TS:90 X-CID-INFO: VERSION:1.1.17,REQID:0c73da96-0641-42fe-8f34-dcaa62aa4e1e,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:95,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTIO N:quarantine,TS:90 X-CID-META: VersionHash:543e81c,CLOUDID:c199ee8b-8530-4eff-9f77-222cf6e2895b,B ulkID:2301111545344UDNDSGV,BulkQuantity:0,Recheck:0,SF:38|28|17|19|48,TC:n il,Content:0,EDM:-3,IP:nil,URL:11|1,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0 X-CID-APTURL: Status:success,Category:nil,Trust:0,Unknown:0,Malicious:0 X-CID-BVR: 0 X-UUID: ecc5540e918311eda06fc9ecc4dadd91-20230111 Received: from mtkmbs10n1.mediatek.inc [(172.21.101.34)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 1060145926; Wed, 11 Jan 2023 15:45:31 +0800 Received: from mtkmbs13n2.mediatek.inc (172.21.101.108) by mtkmbs11n2.mediatek.inc (172.21.101.187) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.792.15; Wed, 11 Jan 2023 15:45:31 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n2.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.792.15 via Frontend Transport; Wed, 11 Jan 2023 15:45:31 +0800 From: Roger Lu To: Matthias Brugger , Enric Balletbo Serra , Kevin Hilman , Nicolas Boichat CC: Fan Chen , Roger Lu , Jia-wei Chang , , , , , , Subject: [PATCH v4 09/14] soc: mediatek: mtk-svs: improve readability of platform_probe Date: Wed, 11 Jan 2023 15:45:23 +0800 Message-ID: <20230111074528.29354-10-roger.lu@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20230111074528.29354-1-roger.lu@mediatek.com> References: <20230111074528.29354-1-roger.lu@mediatek.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, T_SPF_TEMPERROR,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Matthias Brugger If a compatible misses a match data entry, then something is wrong in the development phase, we don't need to check for that at runtime. Signed-off-by: Matthias Brugger Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Roger Lu --- drivers/soc/mediatek/mtk-svs.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/soc/mediatek/mtk-svs.c b/drivers/soc/mediatek/mtk-svs.c index 41c0ac5ed8d3..354582825082 100644 --- a/drivers/soc/mediatek/mtk-svs.c +++ b/drivers/soc/mediatek/mtk-svs.c @@ -2394,10 +2394,6 @@ static struct svs_platform *svs_platform_probe(struct platform_device *pdev) int ret; svsp_data = of_device_get_match_data(&pdev->dev); - if (!svsp_data) { - dev_err(&pdev->dev, "no svs platform data?\n"); - return ERR_PTR(-EPERM); - } svsp = devm_kzalloc(&pdev->dev, sizeof(*svsp), GFP_KERNEL); if (!svsp) -- 2.18.0