Skip to content

Commit

Permalink
Driver core: export platform_device_register_data as a GPL symbol
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Hennerich authored and Greg Kroah-Hartman committed Dec 23, 2009
1 parent 99b28f1 commit 0787fdf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/base/platform.c
Original file line number Diff line number Diff line change
Expand Up @@ -441,6 +441,7 @@ struct platform_device *platform_device_register_data(
platform_device_put(pdev);
return ERR_PTR(retval);
}
EXPORT_SYMBOL_GPL(platform_device_register_data);

static int platform_drv_probe(struct device *_dev)
{
Expand Down

0 comments on commit 0787fdf

Please sign in to comment.