Re: [PATCH v2] gpio: sx150x: Add Semtech I2C sx150x gpio expander driver.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 19 Jul 2010 16:31:42 -0700
Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> wrote:

> On Thu,  8 Jul 2010 12:37:14 -0700
> Gregory Bean <gbean@xxxxxxxxxxxxxx> wrote:
> 
> > Add support for Semtech SX150-series I2C GPIO expanders.
> 
> It doesn't work when compiled as a module:
> 
> ERROR: "irq_to_desc" [drivers/gpio/sx150x.ko] undefined!
> ERROR: "handle_edge_irq" [drivers/gpio/sx150x.ko] undefined!
> ERROR: "set_irq_chip_and_handler" [drivers/gpio/sx150x.ko] undefined!
> ERROR: "set_irq_noprobe" [drivers/gpio/sx150x.ko] undefined!
> 
> I think there's a reason why some of those things aren't exported to
> modules.  Perhaps Thomas can remind us?
> 
> Meanwhile I'll do s/tristate/bool/.

Which of course didn't work because i2c is a module.


drivers/built-in.o: In function `sx150x_i2c_read':
sx150x.c:(.text+0x5362): undefined reference to `i2c_smbus_read_byte_data'
drivers/built-in.o: In function `sx150x_i2c_write':
sx150x.c:(.text+0x53e4): undefined reference to `i2c_smbus_write_byte_data'
drivers/built-in.o: In function `sx150x_init':
sx150x.c:(.init.text+0x418): undefined reference to `i2c_register_driver'
drivers/built-in.o: In function `sx150x_probe':
sx150x.c:(.devinit.text+0xda1): undefined reference to `i2c_smbus_write_word_data'
drivers/built-in.o: In function `sx150x_exit':
sx150x.c:(.exit.text+0x7c): undefined reference to `i2c_del_driver'
--
To unsubscribe from this list: send the line "unsubscribe linux-i2c" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux