Return-Path: Received: from mail.kernel.org ([198.145.29.136]:39196 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S935328AbcKKVxK (ORCPT ); Fri, 11 Nov 2016 16:53:10 -0500 Date: Fri, 11 Nov 2016 15:52:40 -0600 From: Bjorn Helgaas To: Wei Yongjun Cc: Bjorn Helgaas , Krzysztof Kozlowski , Keith Busch , Jon Derrick , Vineet Gupta , Robin Murphy , Wei Yongjun , linux-pci@vger.kernel.org Subject: Re: [PATCH -next] x86/PCI: VMD: Remove unnecessary pci_set_drvdata() Message-ID: <20161111215240.GO9868@bhelgaas-glaptop.roam.corp.google.com> References: <1476716684-6778-1-git-send-email-weiyj.lk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1476716684-6778-1-git-send-email-weiyj.lk@gmail.com> Sender: linux-pci-owner@vger.kernel.org List-ID: On Mon, Oct 17, 2016 at 03:04:44PM +0000, Wei Yongjun wrote: > From: Wei Yongjun > > The driver core clears the driver data to NULL after device_release > or on probe failure. Thus, it is not needed to manually clear the > device driver data to NULL. > > Signed-off-by: Wei Yongjun Applied with Keith's reviewed-by to pci/host-vmd for v4.10, thanks! > --- > drivers/pci/host/vmd.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/pci/host/vmd.c b/drivers/pci/host/vmd.c > index 37e29b5..6614b3552 100644 > --- a/drivers/pci/host/vmd.c > +++ b/drivers/pci/host/vmd.c > @@ -719,7 +719,6 @@ static void vmd_remove(struct pci_dev *dev) > struct vmd_dev *vmd = pci_get_drvdata(dev); > > vmd_detach_resources(vmd); > - pci_set_drvdata(dev, NULL); > sysfs_remove_link(&vmd->dev->dev.kobj, "domain"); > pci_stop_root_bus(vmd->bus); > pci_remove_root_bus(vmd->bus); > > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-pci" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html