From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752889AbbJNIcc (ORCPT ); Wed, 14 Oct 2015 04:32:32 -0400 Received: from mail-lf0-f42.google.com ([209.85.215.42]:34695 "EHLO mail-lf0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752133AbbJNIc1 (ORCPT ); Wed, 14 Oct 2015 04:32:27 -0400 MIME-Version: 1.0 In-Reply-To: <6044983.WR9BTgsOaA@wuerfel> References: <1444790492-4051-1-git-send-email-lftan@altera.com> <1444790492-4051-4-git-send-email-lftan@altera.com> <6044983.WR9BTgsOaA@wuerfel> Date: Wed, 14 Oct 2015 16:32:25 +0800 X-Google-Sender-Auth: mGVcK_hEl-GOD6n8YuoFiYx0ims Message-ID: Subject: Re: [PATCH v9 3/6] pci:host: Add Altera PCIe host controller driver From: Ley Foon Tan To: Arnd Bergmann Cc: Bjorn Helgaas , Russell King , Marc Zyngier , Dinh Nguyen , linux-pci@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Lorenzo Pieralisi Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Oct 14, 2015 at 4:20 PM, Arnd Bergmann wrote: > On Wednesday 14 October 2015 10:41:29 Ley Foon Tan wrote: >> +static int altera_pcie_remove(struct platform_device *pdev) >> +{ >> + struct altera_pcie *pcie = platform_get_drvdata(pdev); >> + >> + altera_pcie_free_irq_domain(pcie); >> + platform_set_drvdata(pdev, NULL); >> + return 0; >> +} > > I just noticed this. Does it actually work to unload the module > and tear down all the pci_dev structures in a safe way? Good catch. It only can be compiled as builtin-moduley now, so we can remove this _remove callback function. Thanks. Regards Ley Foon From mboxrd@z Thu Jan 1 00:00:00 1970 From: lftan@altera.com (Ley Foon Tan) Date: Wed, 14 Oct 2015 16:32:25 +0800 Subject: [PATCH v9 3/6] pci:host: Add Altera PCIe host controller driver In-Reply-To: <6044983.WR9BTgsOaA@wuerfel> References: <1444790492-4051-1-git-send-email-lftan@altera.com> <1444790492-4051-4-git-send-email-lftan@altera.com> <6044983.WR9BTgsOaA@wuerfel> Message-ID: To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Wed, Oct 14, 2015 at 4:20 PM, Arnd Bergmann wrote: > On Wednesday 14 October 2015 10:41:29 Ley Foon Tan wrote: >> +static int altera_pcie_remove(struct platform_device *pdev) >> +{ >> + struct altera_pcie *pcie = platform_get_drvdata(pdev); >> + >> + altera_pcie_free_irq_domain(pcie); >> + platform_set_drvdata(pdev, NULL); >> + return 0; >> +} > > I just noticed this. Does it actually work to unload the module > and tear down all the pci_dev structures in a safe way? Good catch. It only can be compiled as builtin-moduley now, so we can remove this _remove callback function. Thanks. Regards Ley Foon