Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b33f9cbd authored by Stephen Warren's avatar Stephen Warren Committed by Mark Brown
Browse files

regmap: Specify a module license



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: default avatarStephen Warren <swarren@nvidia.com>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent 40c5cc26
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -113,3 +113,4 @@ struct regmap *regmap_init_i2c(struct i2c_client *i2c,
}
EXPORT_SYMBOL_GPL(regmap_init_i2c);

MODULE_LICENSE("GPL");
+2 −0
Original line number Diff line number Diff line
@@ -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");