Browse Source

Driver core: export platform_device_register_data as a GPL symbol

This allows MFD's to register/bind drivers for their sub devices while
still being compiled as a module.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Michael Hennerich 15 years ago
parent
commit
0787fdf70b
1 changed files with 1 additions and 0 deletions
  1. 1 0
      drivers/base/platform.c

+ 1 - 0
drivers/base/platform.c

@@ -441,6 +441,7 @@ error:
 	platform_device_put(pdev);
 	platform_device_put(pdev);
 	return ERR_PTR(retval);
 	return ERR_PTR(retval);
 }
 }
+EXPORT_SYMBOL_GPL(platform_device_register_data);
 
 
 static int platform_drv_probe(struct device *_dev)
 static int platform_drv_probe(struct device *_dev)
 {
 {