aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/switch/switchtec.c
diff options
context:
space:
mode:
authorLogan Gunthorpe <logang@deltatee.com>2017-08-03 14:19:41 -0400
committerJon Mason <jdmason@kudzu.us>2017-11-18 20:37:11 -0500
commit302e994d3af7e4be8d0f789aa66422166ccd89c2 (patch)
tree8dcba50ea02792ffbb19d64c5828316aa85bb081 /drivers/pci/switch/switchtec.c
parent5a1c269f15dc9f964f829d864ae8abebcaa3d3be (diff)
NTB: switchtec: Export class symbol for use in upper layer driver
We export the class pointer symbol and add an extern define in the Switchtec header file. Signed-off-by: Logan Gunthorpe <logang@deltatee.com> Reviewed-by: Stephen Bates <sbates@raithlin.com> Reviewed-by: Kurt Schwemmer <kurt.schwemmer@microsemi.com> Acked-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Jon Mason <jdmason@kudzu.us>
Diffstat (limited to 'drivers/pci/switch/switchtec.c')
-rw-r--r--drivers/pci/switch/switchtec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/pci/switch/switchtec.c b/drivers/pci/switch/switchtec.c
index 5b75d3008ff8..39c9218d733f 100644
--- a/drivers/pci/switch/switchtec.c
+++ b/drivers/pci/switch/switchtec.c
@@ -33,9 +33,11 @@ module_param(max_devices, int, 0644);
33MODULE_PARM_DESC(max_devices, "max number of switchtec device instances"); 33MODULE_PARM_DESC(max_devices, "max number of switchtec device instances");
34 34
35static dev_t switchtec_devt; 35static dev_t switchtec_devt;
36static struct class *switchtec_class;
37static DEFINE_IDA(switchtec_minor_ida); 36static DEFINE_IDA(switchtec_minor_ida);
38 37
38struct class *switchtec_class;
39EXPORT_SYMBOL_GPL(switchtec_class);
40
39enum mrpc_state { 41enum mrpc_state {
40 MRPC_IDLE = 0, 42 MRPC_IDLE = 0,
41 MRPC_QUEUED, 43 MRPC_QUEUED,