* [PATCH 1/3] pci: Export pci_dev_type
@ 2013-04-04 21:58 Brian King
2013-04-05 6:55 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Brian King @ 2013-04-04 21:58 UTC (permalink / raw)
To: linux-pci; +Cc: klebers, brking, lucaskt, bhelgaas, linuxppc-dev
Export pci_dev_type so that arch specific PCI probing code can
initialize a new PCI device struct.
Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
---
drivers/pci/pci.h | 1 -
include/linux/pci.h | 1 +
2 files changed, 1 insertion(+), 1 deletion(-)
diff -puN drivers/pci/pci.h~pci_export_pci_dev_type drivers/pci/pci.h
--- linux/drivers/pci/pci.h~pci_export_pci_dev_type 2013-04-02 17:01:25.000000000 -0500
+++ linux-bjking1/drivers/pci/pci.h 2013-04-02 17:02:31.000000000 -0500
@@ -153,7 +153,6 @@ static inline int pci_no_d1d2(struct pci
}
extern struct device_attribute pci_dev_attrs[];
extern struct device_attribute pcibus_dev_attrs[];
-extern struct device_type pci_dev_type;
extern struct bus_attribute pci_bus_attrs[];
diff -puN include/linux/pci.h~pci_export_pci_dev_type include/linux/pci.h
--- linux/include/linux/pci.h~pci_export_pci_dev_type 2013-04-02 17:01:59.000000000 -0500
+++ linux-bjking1/include/linux/pci.h 2013-04-02 17:02:29.000000000 -0500
@@ -670,6 +670,7 @@ enum pcie_bus_config_types {
extern enum pcie_bus_config_types pcie_bus_config;
extern struct bus_type pci_bus_type;
+extern struct device_type pci_dev_type;
/* Do NOT directly access these two variables, unless you are arch specific pci
* code, or pci core code. */
_
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] pci: Export pci_dev_type
2013-04-04 21:58 [PATCH 1/3] pci: Export pci_dev_type Brian King
@ 2013-04-05 6:55 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2013-04-05 6:55 UTC (permalink / raw)
To: Brian King; +Cc: klebers, linux-pci, bhelgaas, linuxppc-dev, lucaskt
Hi Bjorn,
Should we take this series via the powerpc tree, assuming you're OK with
this patch?
cheers
On Thu, Apr 04, 2013 at 04:58:13PM -0500, Brian King wrote:
>
> Export pci_dev_type so that arch specific PCI probing code can
> initialize a new PCI device struct.
>
> Signed-off-by: Brian King <brking@linux.vnet.ibm.com>
> ---
>
> drivers/pci/pci.h | 1 -
> include/linux/pci.h | 1 +
> 2 files changed, 1 insertion(+), 1 deletion(-)
>
> diff -puN drivers/pci/pci.h~pci_export_pci_dev_type drivers/pci/pci.h
> --- linux/drivers/pci/pci.h~pci_export_pci_dev_type 2013-04-02 17:01:25.000000000 -0500
> +++ linux-bjking1/drivers/pci/pci.h 2013-04-02 17:02:31.000000000 -0500
> @@ -153,7 +153,6 @@ static inline int pci_no_d1d2(struct pci
> }
> extern struct device_attribute pci_dev_attrs[];
> extern struct device_attribute pcibus_dev_attrs[];
> -extern struct device_type pci_dev_type;
> extern struct bus_attribute pci_bus_attrs[];
>
>
> diff -puN include/linux/pci.h~pci_export_pci_dev_type include/linux/pci.h
> --- linux/include/linux/pci.h~pci_export_pci_dev_type 2013-04-02 17:01:59.000000000 -0500
> +++ linux-bjking1/include/linux/pci.h 2013-04-02 17:02:29.000000000 -0500
> @@ -670,6 +670,7 @@ enum pcie_bus_config_types {
> extern enum pcie_bus_config_types pcie_bus_config;
>
> extern struct bus_type pci_bus_type;
> +extern struct device_type pci_dev_type;
>
> /* Do NOT directly access these two variables, unless you are arch specific pci
> * code, or pci core code. */
> _
>
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-04-05 6:55 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-04 21:58 [PATCH 1/3] pci: Export pci_dev_type Brian King
2013-04-05 6:55 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).