Return-Path: Received: from mail.linuxfoundation.org ([140.211.169.12]:36563 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751219AbaG0DTS (ORCPT ); Sat, 26 Jul 2014 23:19:18 -0400 Date: Sat, 26 Jul 2014 20:18:52 -0700 From: Greg Kroah-Hartman To: wangyijing@huawei.com Cc: Bjorn Helgaas , linux-pci@vger.kernel.org Subject: Re: [PATCH 1/3] PCI/MSI: Clean up the kobject in struct msi_desc Message-ID: <20140727031852.GB22368@kroah.com> References: <1406339316-20163-1-git-send-email-wangyijing@huawei.com> <1406339316-20163-2-git-send-email-wangyijing@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <1406339316-20163-2-git-send-email-wangyijing@huawei.com> Sender: linux-pci-owner@vger.kernel.org List-ID: On Sat, Jul 26, 2014 at 09:48:34AM +0800, wangyijing@huawei.com wrote: > From: Yijing Wang > > commit 1c51b50c299 exported MSI mode using attributes > instead of kobject. So clean up the kobject in struct > msi_desc. > > Cc: Greg Kroah-Hartman > Signed-off-by: Yijing Wang > --- > drivers/pci/msi.c | 11 ----------- > include/linux/msi.h | 2 -- > 2 files changed, 0 insertions(+), 13 deletions(-) > > diff --git a/drivers/pci/msi.c b/drivers/pci/msi.c > index 5a40516..e2aa74e 100644 > --- a/drivers/pci/msi.c > +++ b/drivers/pci/msi.c > @@ -384,17 +384,6 @@ static void free_msi_irqs(struct pci_dev *dev) > iounmap(entry->mask_base); > } > > - /* > - * Its possible that we get into this path > - * When populate_msi_sysfs fails, which means the entries > - * were not registered with sysfs. In that case don't > - * unregister them. > - */ > - if (entry->kobj.parent) { > - kobject_del(&entry->kobj); > - kobject_put(&entry->kobj); > - } > - > list_del(&entry->list); > kfree(entry); > } > diff --git a/include/linux/msi.h b/include/linux/msi.h > index 8103f32..8892d41 100644 > --- a/include/linux/msi.h > +++ b/include/linux/msi.h > @@ -47,8 +47,6 @@ struct msi_desc { > > /* Last set MSI message */ > struct msi_msg msg; > - > - struct kobject kobj; > }; > > /* > -- > 1.7.1 Oops, missed that one, nice catch. Acked-by: Greg Kroah-Hartman