regmap: Specify a module license
authorStephen Warren <swarren@nvidia.com>
Thu, 11 Aug 2011 17:59:10 +0000 (11:59 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 12 Aug 2011 01:42:02 +0000 (10:42 +0900)
CONFIG_REGMAP_I2C/SPI are set to m when selected by a tristate config
option that's set to m. The regmap modules don't specify a license, so
fail to link to regmap_init at load time, since that is EXPORT_SYMBOL_GPL.
Fix this by specifying a license for the regmap modules.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap-i2c.c
drivers/base/regmap/regmap-spi.c

index c2231ff06cbcfebfe4a5ef6c0aee1ffa6ecc28fb..c4f7a45cd2c3386a95776081eab5350bb0034017 100644 (file)
@@ -113,3 +113,4 @@ struct regmap *regmap_init_i2c(struct i2c_client *i2c,
 }
 EXPORT_SYMBOL_GPL(regmap_init_i2c);
 
+MODULE_LICENSE("GPL");
index 4deba0621bc7f035b66ccc1ffc6821e580591f43..2bbc65999a5f80b6ea70f2590be6a7cd5e9cd8cf 100644 (file)
@@ -70,3 +70,5 @@ struct regmap *regmap_init_spi(struct spi_device *spi,
        return regmap_init(&spi->dev, &regmap_spi, config);
 }
 EXPORT_SYMBOL_GPL(regmap_init_spi);
+
+MODULE_LICENSE("GPL");