Commit 302e994d authored by Logan Gunthorpe's avatar Logan Gunthorpe Committed by Jon Mason
Browse files

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: default avatarLogan Gunthorpe <>
Reviewed-by: default avatarStephen Bates <>
Reviewed-by: default avatarKurt Schwemmer <>
Acked-by: default avatarBjorn Helgaas <>
Signed-off-by: default avatarJon Mason <>
parent 5a1c269f
......@@ -33,9 +33,11 @@ module_param(max_devices, int, 0644);
MODULE_PARM_DESC(max_devices, "max number of switchtec device instances");
static dev_t switchtec_devt;
static struct class *switchtec_class;
static DEFINE_IDA(switchtec_minor_ida);
struct class *switchtec_class;
enum mrpc_state {
......@@ -276,4 +276,6 @@ static inline struct switchtec_dev *to_stdev(struct device *dev)
return container_of(dev, struct switchtec_dev, dev);
extern struct class *switchtec_class;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment