Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp655037pxf; Thu, 8 Apr 2021 10:10:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeIcJkeF8pMRURQnhMNg5Cg04qwcZ9Uq6hKhHqsk5Lmcf9DU5BlxC2m9PfBDf2fJevLbk1 X-Received: by 2002:a65:6704:: with SMTP id u4mr8779304pgf.169.1617901832106; Thu, 08 Apr 2021 10:10:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617901832; cv=none; d=google.com; s=arc-20160816; b=ALwRhbcY9VAkrEC/MUNv4p3uF3EsdSTG/26OOBYlRE9UwcI26NP86Jo9XkJ8HidhMt FWL5zBjf8MdA1MqAhZ1yv/aCTKWZJj0TDRqlcxxaZMGTct+BzSR7ZkIzcyKnLPovLHDG hSej2JLOvBveOqop+tqnFGWOXRGAmZIv9QIGiw3lKw0Vs/HdhfTo+o44UmqtT0lbhPjo o51GFVYo5X3vKRW8sXt5BuuotkFdIm/s0E6W6D+mXJm07bj/ldBdflNtIgu8wWviUbgu rb28lb877HQXTzexpWYcDtgx1y6+QOMHAE5Qjy2jG7Nr6vJ1ghenm428kXD4I/TSkuS1 IVZw== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date; bh=GAtuavhmHW+gMVmzhaFigMhADreu3NmdfQ1E4RBRrkw=; b=dfCTPi5fNQnB8MALBkKgDUMsPtxYYHpXd1OacUan0QTrLzmAs6PNdkCwcof6rxEnAY oH9rfJpy0VEdDy/5iVhobzcPuziQj0k53r0t7uew3TnkVFlKg/q+1jqZ3muzID2sxths GEUijvG/bxbYnXJauV16HvqESG8JtDvaUc/GYzORtmmn3HDfdn1Nav/d/4Ss+ibqkk6B VS7PI24yvIHKTAjh7uT5hjEXsdhZ+uMZnvQiHxJInFcdJ3vutr8GF7yTQ5RJzhhIu6gX 1Q068YZlw2tRyUx7CgecjqHg3QwLU50K1aSiPsYJLBS7NA9itCZc+SBuy6zu4hzv+Lwd dQzg== 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=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mt3si9475126pjb.117.2021.04.08.10.10.19; Thu, 08 Apr 2021 10:10:32 -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=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231566AbhDHRJp (ORCPT + 99 others); Thu, 8 Apr 2021 13:09:45 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:2809 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232123AbhDHRJp (ORCPT ); Thu, 8 Apr 2021 13:09:45 -0400 Received: from fraeml734-chm.china.huawei.com (unknown [172.18.147.226]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4FGSDY66bzz68709; Fri, 9 Apr 2021 00:59:57 +0800 (CST) Received: from lhreml710-chm.china.huawei.com (10.201.108.61) by fraeml734-chm.china.huawei.com (10.206.15.215) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 8 Apr 2021 19:09:31 +0200 Received: from localhost (10.47.93.239) by lhreml710-chm.china.huawei.com (10.201.108.61) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2106.2; Thu, 8 Apr 2021 18:09:31 +0100 Date: Thu, 8 Apr 2021 18:08:06 +0100 From: Jonathan Cameron To: Ben Widawsky CC: , , , , , , , Subject: Re: [PATCH 1/7] cxl/mem: Use dev instead of pdev->dev Message-ID: <20210408180806.0000351f@Huawei.com> In-Reply-To: <20210407222625.320177-2-ben.widawsky@intel.com> References: <20210407222625.320177-1-ben.widawsky@intel.com> <20210407222625.320177-2-ben.widawsky@intel.com> Organization: Huawei Technologies Research and Development (UK) Ltd. X-Mailer: Claws Mail 3.17.4 (GTK+ 2.24.32; i686-w64-mingw32) MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.47.93.239] X-ClientProxiedBy: lhreml750-chm.china.huawei.com (10.201.108.200) To lhreml710-chm.china.huawei.com (10.201.108.61) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 7 Apr 2021 15:26:19 -0700 Ben Widawsky wrote: > Trivial cleanup. Obviously correct :) > > Signed-off-by: Ben Widawsky FWIW Acked-by: Jonathan Cameron > --- > 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;