power_supply: bq2415x_charger: Do not add acpi modalias when CONFIG_ACPI is not enabled
Signed-off-by: Pali Rohár <pali.rohar@gmail.com> Acked-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Sebastian Reichel <sre@kernel.org>
This commit is contained in:
parent
64876fe552
commit
ec3d7d08c2
1 changed files with 2 additions and 0 deletions
|
@ -1759,6 +1759,7 @@ static const struct i2c_device_id bq2415x_i2c_id_table[] = {
|
|||
};
|
||||
MODULE_DEVICE_TABLE(i2c, bq2415x_i2c_id_table);
|
||||
|
||||
#ifdef CONFIG_ACPI
|
||||
static const struct acpi_device_id bq2415x_i2c_acpi_match[] = {
|
||||
{ "BQ2415X", BQUNKNOWN },
|
||||
{ "BQ241500", BQ24150 },
|
||||
|
@ -1776,6 +1777,7 @@ static const struct acpi_device_id bq2415x_i2c_acpi_match[] = {
|
|||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(acpi, bq2415x_i2c_acpi_match);
|
||||
#endif
|
||||
|
||||
static struct i2c_driver bq2415x_driver = {
|
||||
.driver = {
|
||||
|
|
Loading…
Reference in a new issue