mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 05:50:19 +00:00
gpio: sx150x: fix implicit assumption module.h is present
This file is currently getting module.h from a global gpio header and it will faii to build once we remove module.h from that. However, the driver is controlled with the following Kconfig: drivers/gpio/Kconfig:config GPIO_SX150X drivers/gpio/Kconfig: bool "Semtech SX150x I2C GPIO expander" and hence the two lines of MODULE_DEVICE_TABLE are no-ops that can simply be deleted. Cc: Linus Walleij <linus.walleij@linaro.org> Cc: Alexandre Courbot <gnurou@gmail.com> Cc: linux-gpio@vger.kernel.org Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
a86e87e8c7
commit
bb411e771b
@ -236,7 +236,6 @@ static const struct i2c_device_id sx150x_id[] = {
|
||||
{"sx1502q", 3},
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(i2c, sx150x_id);
|
||||
|
||||
static const struct of_device_id sx150x_of_match[] = {
|
||||
{ .compatible = "semtech,sx1508q" },
|
||||
@ -245,7 +244,6 @@ static const struct of_device_id sx150x_of_match[] = {
|
||||
{ .compatible = "semtech,sx1502q" },
|
||||
{},
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, sx150x_of_match);
|
||||
|
||||
static s32 sx150x_i2c_write(struct i2c_client *client, u8 reg, u8 val)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user