Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp944428pxf; Wed, 7 Apr 2021 15:44:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzTYDwZB2CT2Zbo2RWiNwy9E/4QxBTNDtHEvZemMxgUR5vXczn8cXWaLPcqvZlQelnDUiwW X-Received: by 2002:a05:6402:1777:: with SMTP id da23mr7356263edb.223.1617835458559; Wed, 07 Apr 2021 15:44:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617835458; cv=none; d=google.com; s=arc-20160816; b=ZeJZxod3I3fqX3FewhT78+3Sra9C3eqQ0A127FN1AaDnI/qM9XRpJJ38oZ4UnzjKwK Xj5vzY4hcJx36CWpn4FxB+rwaItyoLMhs+tu7AFDmdlNChXiCpWISyGVX6qdOgXcrUgu cIuARwG7TMvFZrnUAYigFCOCkdTDY+a/dzrhbv7gMD4rwQkdqNDIvGR9eRuAKgjpPOg7 rtEl2oXDLyX0Z1q088K/L0foHh47JcmtC8qytl2KMfcWDM+aTdS+vuwFSfPn4jad5GSC dbIavTbwxLtPL1H5pgQMPpE2yR63aXRpMN8jXTT3uKhXnA7LlvzIU5oDQjsidJrLq2Vd rQOA== 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 :ironport-sdr:ironport-sdr; bh=Ha3NsFoTxVp18+xinZZpqsqrzDIR76Oh89v7fo9d+Ho=; b=BTZ+omwgOHqxpGvvz2IkmRgh5ZQhQuqkpa3KwDhILPFoA9/kWyoDjBsNsfMK7JfehO Yho29n4JbOa/XtsBZv38Jp8uQndKKSWyHidtqk6/WFpqCgxuNYh0WFRU8J3ZEAXDEROV h5m7FAF0BxFN0zmJLaGMERCsUX9iY6TtPem6E3EnUcGyDApkYbB/5ST1pHq5HNooaboq Fn5N2D8CCjqOrcubIel8fq1cpq/mqOC7JUi5el5lcgt/bacxpz2fgIiPubwJ99wAPPfW nje/CUJRWnGPJ/CJTII7eEkVDcU/ZHM/T+vw1AHpFaIcJipmfpeoJrWyMcgYv0SH2ctV V9rA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m17si9408319edr.21.2021.04.07.15.43.55; Wed, 07 Apr 2021 15:44:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229739AbhDGW1H (ORCPT + 99 others); Wed, 7 Apr 2021 18:27:07 -0400 Received: from mga09.intel.com ([134.134.136.24]:14309 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbhDGW0w (ORCPT ); Wed, 7 Apr 2021 18:26:52 -0400 IronPort-SDR: azuVK6m0rKXbjpIHRM4/Mnv32GW0NX/i7AQ7x6cQwHyDwsOXeKFZ+FAdowF7iwT3ptwSdkFt9S TjNKXgM1DNMQ== X-IronPort-AV: E=McAfee;i="6000,8403,9947"; a="193524912" X-IronPort-AV: E=Sophos;i="5.82,204,1613462400"; d="scan'208";a="193524912" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 15:26:38 -0700 IronPort-SDR: nXmuEZ4eA97r1e4GYdIvBECXcH+Z12PfklUt1M92z0WmmU8TPLt8o4DG+XQUlFHzCaF+bciM3Z vf8vixY4sZ9g== X-IronPort-AV: E=Sophos;i="5.82,204,1613462400"; d="scan'208";a="458548529" Received: from hmfaraby-mobl.amr.corp.intel.com (HELO bwidawsk-mobl5.local) ([10.252.128.243]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Apr 2021 15:26:38 -0700 From: Ben Widawsky To: linux-cxl@vger.kernel.org Cc: Ben Widawsky , linux-pci@vger.kernel.org, linux-acpi@vger.kernel.org, ira.weiny@intel.com, vishal.l.verma@intel.com, alison.schofield@intel.com, dan.j.williams@intel.com, linux-kernel@vger.kernel.org Subject: [PATCH 1/7] cxl/mem: Use dev instead of pdev->dev Date: Wed, 7 Apr 2021 15:26:19 -0700 Message-Id: <20210407222625.320177-2-ben.widawsky@intel.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210407222625.320177-1-ben.widawsky@intel.com> References: <20210407222625.320177-1-ben.widawsky@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Trivial cleanup. Signed-off-by: Ben Widawsky --- drivers/cxl/mem.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cxl/mem.c b/drivers/cxl/mem.c index b6fe4e81d38a..99534260034e 100644 --- a/drivers/cxl/mem.c +++ b/drivers/cxl/mem.c @@ -935,7 +935,7 @@ static struct cxl_mem *cxl_mem_create(struct pci_dev *pdev, u32 reg_lo, u8 bar; int rc; - cxlm = devm_kzalloc(&pdev->dev, sizeof(*cxlm), GFP_KERNEL); + cxlm = devm_kzalloc(dev, sizeof(*cxlm), GFP_KERNEL); if (!cxlm) { dev_err(dev, "No memory available\n"); return NULL; -- 2.31.1