Commit 310a922d authored by Matthew Wilcox's avatar Matthew Wilcox Committed by Greg Kroah-Hartman

Fix dev_printk() is now GPL-only

Make dev_printk usable from non-GPL modules again

dev_printk now calls dev_driver_string.  We want even proprietary modules
to be calling dev_printk, so the export of dev_driver_string needs to be
non-GPL-only.
Signed-off-by: default avatarMatthew Wilcox <matthew@wil.cx>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 0fbf116d
...@@ -44,7 +44,7 @@ const char *dev_driver_string(struct device *dev) ...@@ -44,7 +44,7 @@ const char *dev_driver_string(struct device *dev)
return dev->driver ? dev->driver->name : return dev->driver ? dev->driver->name :
(dev->bus ? dev->bus->name : ""); (dev->bus ? dev->bus->name : "");
} }
EXPORT_SYMBOL_GPL(dev_driver_string); EXPORT_SYMBOL(dev_driver_string);
#define to_dev(obj) container_of(obj, struct device, kobj) #define to_dev(obj) container_of(obj, struct device, kobj)
#define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr) #define to_dev_attr(_attr) container_of(_attr, struct device_attribute, attr)
......
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