Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp2704712rwb; Mon, 15 Aug 2022 09:55:56 -0700 (PDT) X-Google-Smtp-Source: AA6agR6a22jDsg1j/643ZLg1xgc73qPe6wJhU90+6fpxiw+ibj2uqMcnfhXZynF0ewP2pa0B4xv1 X-Received: by 2002:aa7:cf18:0:b0:43d:34e:11b9 with SMTP id a24-20020aa7cf18000000b0043d034e11b9mr15490935edy.145.1660582556713; Mon, 15 Aug 2022 09:55:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660582556; cv=none; d=google.com; s=arc-20160816; b=I/fP3YVecE2YZo8ohsHZEyM35mtSz0CaoeVodorDB5r+RQ4VlP/K6CawlUswyso2Lp gXh/s11WpFPwY1toKxKWWJybLCk2V87HjnBG3CL/rqpfE5nUgz3u9TAGHhq71/cwhw+a CszVxL6WJnbWepRvDZox5KxiN722mh2WZH9Q126uhbMD2RgEOWdYoGzcqtk4JurKAG53 VXfC8ThDgyqiggMsX4sdFeaCxf9uI+v0fhgLfNV0IdHmDshSKC39xRalCXAKl8EXlhMh aUQRjYWXElZIsH7NiI7TABSuU/nMBDQCKMKM6qo3jG7C7SrvcJYJx/1T9J8xKolHDFu3 Zqlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4IxmorHyZSvyuoZcLYMQJk3YDAP3ScKm3W7Y7wYGtS0=; b=oEc/68oUUaByLvBk15f8Jtv96GwmG85KDrAa6ISoncPtufjiVg0hrQ3wZK8+9mYiEt Qv/IvtlzN7NTltoXFx5q6TYgi1n6eX6Sj9xDKCbFzFrU5PxNcyn1BeNH4hmlb2RecFG/ BN0Hs/oa+vvlaEfMuYxAWA3UPG+dR0ozQ4ao4iaXLFSlU8itgxzEF6ClkW8rimW7bSOd DTdpZPB9QfKX3T9Y5/UYFji3W3oKvMmXAHxmYT9qJod3z7vaavPowa3eotvq5cSKb8bp 5yY8xVqdlH7C454FeFzQaMnCob90VBywl9k1R0c05kBBfiJg9uPce8AHG3PnYPsAqpLc r9Hw== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds8-20020a170907724800b00730bc62507csi8639431ejc.125.2022.08.15.09.55.29; Mon, 15 Aug 2022 09:55:56 -0700 (PDT) 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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233088AbiHOQV3 (ORCPT + 99 others); Mon, 15 Aug 2022 12:21:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232676AbiHOQUn (ORCPT ); Mon, 15 Aug 2022 12:20:43 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 23CD0140FE for ; Mon, 15 Aug 2022 09:20:39 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4D95D1477; Mon, 15 Aug 2022 09:20:40 -0700 (PDT) Received: from e121345-lin.cambridge.arm.com (e121345-lin.cambridge.arm.com [10.1.196.40]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 0B6E73F70D; Mon, 15 Aug 2022 09:20:37 -0700 (PDT) From: Robin Murphy To: joro@8bytes.org Cc: will@kernel.org, iommu@lists.linux.dev, linux-arm-kernel@lists.infradead.org, baolu.lu@linux.intel.com, kevin.tian@intel.com, suravee.suthikulpanit@amd.com, vasant.hegde@amd.com, mjrosato@linux.ibm.com, schnelle@linux.ibm.com, linux-kernel@vger.kernel.org Subject: [PATCH v4 10/16] iommu/exynos: Clean up bus_set_iommu() Date: Mon, 15 Aug 2022 17:20:11 +0100 Message-Id: X-Mailer: git-send-email 2.36.1.dirty In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE 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 Stop calling bus_set_iommu() since it's now unnecessary, and simplify the init failure path accordingly. Tested-by: Marek Szyprowski Signed-off-by: Robin Murphy --- v4: No change drivers/iommu/exynos-iommu.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/iommu/exynos-iommu.c b/drivers/iommu/exynos-iommu.c index 8e18984a0c4f..45fd4850bacb 100644 --- a/drivers/iommu/exynos-iommu.c +++ b/drivers/iommu/exynos-iommu.c @@ -1446,16 +1446,7 @@ static int __init exynos_iommu_init(void) goto err_zero_lv2; } - ret = bus_set_iommu(&platform_bus_type, &exynos_iommu_ops); - if (ret) { - pr_err("%s: Failed to register exynos-iommu driver.\n", - __func__); - goto err_set_iommu; - } - return 0; -err_set_iommu: - kmem_cache_free(lv2table_kmem_cache, zero_lv2_table); err_zero_lv2: platform_driver_unregister(&exynos_sysmmu_driver); err_reg_driver: -- 2.36.1.dirty