提交 302e994d 编写于 作者: L Logan Gunthorpe 提交者: Jon Mason

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: NLogan Gunthorpe <logang@deltatee.com>
Reviewed-by: NStephen Bates <sbates@raithlin.com>
Reviewed-by: NKurt Schwemmer <kurt.schwemmer@microsemi.com>
Acked-by: NBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: NJon Mason <jdmason@kudzu.us>
上级 5a1c269f
...@@ -33,9 +33,11 @@ module_param(max_devices, int, 0644); ...@@ -33,9 +33,11 @@ module_param(max_devices, int, 0644);
MODULE_PARM_DESC(max_devices, "max number of switchtec device instances"); MODULE_PARM_DESC(max_devices, "max number of switchtec device instances");
static dev_t switchtec_devt; static dev_t switchtec_devt;
static struct class *switchtec_class;
static DEFINE_IDA(switchtec_minor_ida); static DEFINE_IDA(switchtec_minor_ida);
struct class *switchtec_class;
EXPORT_SYMBOL_GPL(switchtec_class);
enum mrpc_state { enum mrpc_state {
MRPC_IDLE = 0, MRPC_IDLE = 0,
MRPC_QUEUED, MRPC_QUEUED,
......
...@@ -276,4 +276,6 @@ static inline struct switchtec_dev *to_stdev(struct device *dev) ...@@ -276,4 +276,6 @@ static inline struct switchtec_dev *to_stdev(struct device *dev)
return container_of(dev, struct switchtec_dev, dev); return container_of(dev, struct switchtec_dev, dev);
} }
extern struct class *switchtec_class;
#endif #endif
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册