[PATCH] random: remove redundant SA_SAMPLE_RANDOM from touchscreen drivers
The core input layer is already calling add_input_randomness. Signed-off-by: Matt Mackall <mpm@selenic.com> Cc: Dmitry Torokhov <dtor_core@ameritech.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
committed by
Linus Torvalds
parent
0f41a53a66
commit
6ceab8a936
@@ -773,8 +773,7 @@ static int __devinit ads7846_probe(struct spi_device *spi)
|
|||||||
|
|
||||||
ts->last_msg = m;
|
ts->last_msg = m;
|
||||||
|
|
||||||
if (request_irq(spi->irq, ads7846_irq,
|
if (request_irq(spi->irq, ads7846_irq, SA_TRIGGER_FALLING,
|
||||||
SA_SAMPLE_RANDOM | SA_TRIGGER_FALLING,
|
|
||||||
spi->dev.driver->name, ts)) {
|
spi->dev.driver->name, ts)) {
|
||||||
dev_dbg(&spi->dev, "irq %d busy?\n", spi->irq);
|
dev_dbg(&spi->dev, "irq %d busy?\n", spi->irq);
|
||||||
err = -EBUSY;
|
err = -EBUSY;
|
||||||
|
@@ -399,16 +399,14 @@ static int h3600ts_connect(struct serio *serio, struct serio_driver *drv)
|
|||||||
set_GPIO_IRQ_edge(GPIO_BITSY_NPOWER_BUTTON, GPIO_RISING_EDGE);
|
set_GPIO_IRQ_edge(GPIO_BITSY_NPOWER_BUTTON, GPIO_RISING_EDGE);
|
||||||
|
|
||||||
if (request_irq(IRQ_GPIO_BITSY_ACTION_BUTTON, action_button_handler,
|
if (request_irq(IRQ_GPIO_BITSY_ACTION_BUTTON, action_button_handler,
|
||||||
SA_SHIRQ | SA_INTERRUPT | SA_SAMPLE_RANDOM,
|
SA_SHIRQ | SA_INTERRUPT, "h3600_action", &ts->dev)) {
|
||||||
"h3600_action", &ts->dev)) {
|
|
||||||
printk(KERN_ERR "h3600ts.c: Could not allocate Action Button IRQ!\n");
|
printk(KERN_ERR "h3600ts.c: Could not allocate Action Button IRQ!\n");
|
||||||
err = -EBUSY;
|
err = -EBUSY;
|
||||||
goto fail2;
|
goto fail2;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (request_irq(IRQ_GPIO_BITSY_NPOWER_BUTTON, npower_button_handler,
|
if (request_irq(IRQ_GPIO_BITSY_NPOWER_BUTTON, npower_button_handler,
|
||||||
SA_SHIRQ | SA_INTERRUPT | SA_SAMPLE_RANDOM,
|
SA_SHIRQ | SA_INTERRUPT, "h3600_suspend", &ts->dev)) {
|
||||||
"h3600_suspend", &ts->dev)) {
|
|
||||||
printk(KERN_ERR "h3600ts.c: Could not allocate Power Button IRQ!\n");
|
printk(KERN_ERR "h3600ts.c: Could not allocate Power Button IRQ!\n");
|
||||||
err = -EBUSY;
|
err = -EBUSY;
|
||||||
goto fail3;
|
goto fail3;
|
||||||
|
Reference in New Issue
Block a user