From patchwork Fri Feb 10 09:06:56 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dan Williams X-Patchwork-Id: 13135563 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id D80E3C636CD for ; Fri, 10 Feb 2023 09:07:00 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 529996B0130; Fri, 10 Feb 2023 04:07:00 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 4B2E96B0132; Fri, 10 Feb 2023 04:07:00 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3538C6B0133; Fri, 10 Feb 2023 04:07:00 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 0A35B6B0130 for ; Fri, 10 Feb 2023 04:07:00 -0500 (EST) Received: from smtpin22.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay03.hostedemail.com (Postfix) with ESMTP id B5A43A105B for ; Fri, 10 Feb 2023 09:06:59 +0000 (UTC) X-FDA: 80450802558.22.5B22C3B Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by imf20.hostedemail.com (Postfix) with ESMTP id B22FA1C0005 for ; Fri, 10 Feb 2023 09:06:57 +0000 (UTC) Authentication-Results: imf20.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bjL7kD6w; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf20.hostedemail.com: domain of dan.j.williams@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1676020017; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=00hrzvXj48UxL/UzFy6wcAqvbe+Blz0CTrlShVrrkFc=; b=WxvJCuD/hh8cpnyhOp0+1tlBoGt10zupuJJadFj7q2q5Dht+nDHtLDtFfYa0ZBJe0CgFpJ VEdXpsuwuvCBxGvDHJs/AUzrXDzHXI6r7Gwohm//DyjGokjOqlC7uiM4tMj41fpX7v9ryD tI63yZOkfmnja6vh76V71FlQtFcTeUw= ARC-Authentication-Results: i=1; imf20.hostedemail.com; dkim=pass header.d=intel.com header.s=Intel header.b=bjL7kD6w; dmarc=pass (policy=none) header.from=intel.com; spf=pass (imf20.hostedemail.com: domain of dan.j.williams@intel.com designates 192.55.52.93 as permitted sender) smtp.mailfrom=dan.j.williams@intel.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1676020017; a=rsa-sha256; cv=none; b=uhl89WlYB11arTnPrX9SjCE+qCo4lUyY1mbaeF2UWdG8qgzXYLhkHE798pXJidmDIGJvMu 53BCfej8+gc/BDo7T0px7PjC/EpWS/sj8EylbZXdr1KTpg7ovYr8F5035buMDMtFPjDFSl lhFFw6z5tmiDE3UgbifAPwlSOxlIKSM= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1676020017; x=1707556017; h=subject:from:to:cc:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=M0vAv81xsakge/rDyjzGZncp54zlO+3hec2ycZsFjWQ=; b=bjL7kD6w8GGUjIZSWicLIalQNsWqsbaRBxPspFexmkz7KKdBp1Hd420K B5c8CTo8I9JLmq/77DxGVViIQs5ZbyzC9unAxn2JPogwRqYwdGVobxa0h pxAMOHCRl5siYqZPcKztORh+KeNbTC4p5aY1h5neHghUjMTfpv3xW0FDS do3QUscHdewNrczWsaO1YlC4fXzeUwUg6MiC2cQn4VbkpaDw3xiolf/M7 JhbbhGXErkf0Q0OrI28cu/C97tN9+IfnpoPxzAK4KtQKsDYBnjhm59rNR LXZsOzgJ8Xp+ciWSSM77MeDCk7xrJ6TsVNlmJUoZZ5+lbeEMdSUo0RNhb w==; X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="328062606" X-IronPort-AV: E=Sophos;i="5.97,286,1669104000"; d="scan'208";a="328062606" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2023 01:06:57 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10616"; a="700392810" X-IronPort-AV: E=Sophos;i="5.97,286,1669104000"; d="scan'208";a="700392810" Received: from hrchavan-mobl.amr.corp.intel.com (HELO dwillia2-xfh.jf.intel.com) ([10.209.46.42]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Feb 2023 01:06:56 -0800 Subject: [PATCH v2 16/20] dax/hmem: Drop unnecessary dax_hmem_remove() From: Dan Williams To: linux-cxl@vger.kernel.org Cc: Jonathan Cameron , Gregory Price , Fan Ni , vishal.l.verma@intel.com, dave.hansen@linux.intel.com, linux-mm@kvack.org, linux-acpi@vger.kernel.org Date: Fri, 10 Feb 2023 01:06:56 -0800 Message-ID: <167602001664.1924368.9102029637928071240.stgit@dwillia2-xfh.jf.intel.com> In-Reply-To: <167601992097.1924368.18291887895351917895.stgit@dwillia2-xfh.jf.intel.com> References: <167601992097.1924368.18291887895351917895.stgit@dwillia2-xfh.jf.intel.com> User-Agent: StGit/0.18-3-g996c MIME-Version: 1.0 X-Rspam-User: X-Rspamd-Server: rspam02 X-Rspamd-Queue-Id: B22FA1C0005 X-Stat-Signature: rbc8s5su8hdciuhdpaqpnaqtnunwon6b X-HE-Tag: 1676020017-611910 X-HE-Meta: U2FsdGVkX1/Pd/0MH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v/9YCcXLU0sO4mvnlHUK58An5fLN1lBRdipofoGUYzWOF2LtUtVcHLJbrmxmCA5Q87hFd6NWw2AiuP66I7PkVt6/TGacMbAcH9iw0TxAgYRaeWG5WDK5glwEh0n0ReH05H0p5bws2bUIMLwtd39ljYpisJoX6LL10lupYtS+emxKsrLHbrVQlj6XF0HeDzn+99bAbLKLOzkPH5aDKbM3bDniezhn4R8WbmC+8pbb7XGQQlsn9y6RJWZ7CZs0wIoB/NR+GDrspOUqXPWytoXRGAacX2sDZMJTAElxP7PeFig= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Empty driver remove callbacks can just be elided. Reviewed-by: Jonathan Cameron Reviewed-by: Gregory Price Tested-by: Fan Ni Link: https://lore.kernel.org/r/167564542679.847146.17174404738816053065.stgit@dwillia2-xfh.jf.intel.com Signed-off-by: Dan Williams Reviewed-by: Dave Jiang Reviewed-by: Vishal Verma --- drivers/dax/hmem/hmem.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/dax/hmem/hmem.c b/drivers/dax/hmem/hmem.c index 1bf040dbc834..c7351e0dc8ff 100644 --- a/drivers/dax/hmem/hmem.c +++ b/drivers/dax/hmem/hmem.c @@ -44,15 +44,8 @@ static int dax_hmem_probe(struct platform_device *pdev) return 0; } -static int dax_hmem_remove(struct platform_device *pdev) -{ - /* devm handles teardown */ - return 0; -} - static struct platform_driver dax_hmem_driver = { .probe = dax_hmem_probe, - .remove = dax_hmem_remove, .driver = { .name = "hmem", },