Merge commit 'v2.6.27-rc1' into for-linus
This commit is contained in:
@@ -37,6 +37,7 @@
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/semaphore.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/pci_ids.h>
|
||||
|
||||
|
@@ -158,25 +158,18 @@ static int __devinit sh_keysc_probe(struct platform_device *pdev)
|
||||
memcpy(&priv->pdata, pdev->dev.platform_data, sizeof(priv->pdata));
|
||||
pdata = &priv->pdata;
|
||||
|
||||
res = request_mem_region(res->start, res_size(res), pdev->name);
|
||||
if (res == NULL) {
|
||||
dev_err(&pdev->dev, "failed to request I/O memory\n");
|
||||
error = -EBUSY;
|
||||
goto err1;
|
||||
}
|
||||
|
||||
priv->iomem_base = ioremap_nocache(res->start, res_size(res));
|
||||
if (priv->iomem_base == NULL) {
|
||||
dev_err(&pdev->dev, "failed to remap I/O memory\n");
|
||||
error = -ENXIO;
|
||||
goto err2;
|
||||
goto err1;
|
||||
}
|
||||
|
||||
priv->input = input_allocate_device();
|
||||
if (!priv->input) {
|
||||
dev_err(&pdev->dev, "failed to allocate input device\n");
|
||||
error = -ENOMEM;
|
||||
goto err3;
|
||||
goto err2;
|
||||
}
|
||||
|
||||
input = priv->input;
|
||||
@@ -194,7 +187,7 @@ static int __devinit sh_keysc_probe(struct platform_device *pdev)
|
||||
error = request_irq(irq, sh_keysc_isr, 0, pdev->name, pdev);
|
||||
if (error) {
|
||||
dev_err(&pdev->dev, "failed to request IRQ\n");
|
||||
goto err4;
|
||||
goto err3;
|
||||
}
|
||||
|
||||
for (i = 0; i < SH_KEYSC_MAXKEYS; i++) {
|
||||
@@ -206,7 +199,7 @@ static int __devinit sh_keysc_probe(struct platform_device *pdev)
|
||||
error = input_register_device(input);
|
||||
if (error) {
|
||||
dev_err(&pdev->dev, "failed to register input device\n");
|
||||
goto err5;
|
||||
goto err4;
|
||||
}
|
||||
|
||||
iowrite16((sh_keysc_mode[pdata->mode].kymd << 8) |
|
||||
@@ -214,14 +207,12 @@ static int __devinit sh_keysc_probe(struct platform_device *pdev)
|
||||
iowrite16(0, priv->iomem_base + KYOUTDR_OFFS);
|
||||
iowrite16(KYCR2_IRQ_LEVEL, priv->iomem_base + KYCR2_OFFS);
|
||||
return 0;
|
||||
err5:
|
||||
free_irq(irq, pdev);
|
||||
err4:
|
||||
input_free_device(input);
|
||||
free_irq(irq, pdev);
|
||||
err3:
|
||||
iounmap(priv->iomem_base);
|
||||
input_free_device(input);
|
||||
err2:
|
||||
release_mem_region(res->start, res_size(res));
|
||||
iounmap(priv->iomem_base);
|
||||
err1:
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
kfree(priv);
|
||||
@@ -232,7 +223,6 @@ static int __devinit sh_keysc_probe(struct platform_device *pdev)
|
||||
static int __devexit sh_keysc_remove(struct platform_device *pdev)
|
||||
{
|
||||
struct sh_keysc_priv *priv = platform_get_drvdata(pdev);
|
||||
struct resource *res;
|
||||
|
||||
iowrite16(KYCR2_IRQ_DISABLED, priv->iomem_base + KYCR2_OFFS);
|
||||
|
||||
@@ -240,9 +230,6 @@ static int __devexit sh_keysc_remove(struct platform_device *pdev)
|
||||
free_irq(platform_get_irq(pdev, 0), pdev);
|
||||
iounmap(priv->iomem_base);
|
||||
|
||||
res = platform_get_resource(pdev, IORESOURCE_MEM, 0);
|
||||
release_mem_region(res->start, res_size(res));
|
||||
|
||||
platform_set_drvdata(pdev, NULL);
|
||||
kfree(priv);
|
||||
return 0;
|
||||
|
@@ -215,8 +215,6 @@ static int tosakbd_suspend(struct platform_device *dev, pm_message_t state)
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&tosakbd->lock, flags);
|
||||
PGSR1 = (PGSR1 & ~TOSA_GPIO_LOW_STROBE_BIT);
|
||||
PGSR2 = (PGSR2 & ~TOSA_GPIO_HIGH_STROBE_BIT);
|
||||
tosakbd->suspended = 1;
|
||||
spin_unlock_irqrestore(&tosakbd->lock, flags);
|
||||
|
||||
|
@@ -44,6 +44,7 @@
|
||||
#include <linux/proc_fs.h>
|
||||
#include <linux/poll.h>
|
||||
#include <linux/rtc.h>
|
||||
#include <linux/semaphore.h>
|
||||
|
||||
MODULE_AUTHOR("Brian S. Julin <bri@calyx.com>");
|
||||
MODULE_DESCRIPTION("HP i8042 SDC + MSM-58321 RTC Driver");
|
||||
|
@@ -67,9 +67,9 @@
|
||||
#include <linux/module.h>
|
||||
#include <linux/ioport.h>
|
||||
#include <linux/time.h>
|
||||
#include <linux/semaphore.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/hil.h>
|
||||
#include <linux/semaphore.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/system.h>
|
||||
|
||||
|
@@ -195,7 +195,7 @@ static void ts_interrupt_main(struct corgi_ts *corgi_ts, int isTimer)
|
||||
{
|
||||
if ((GPLR(IRQ_TO_GPIO(corgi_ts->irq_gpio)) & GPIO_bit(IRQ_TO_GPIO(corgi_ts->irq_gpio))) == 0) {
|
||||
/* Disable Interrupt */
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQT_NOEDGE);
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_NONE);
|
||||
if (read_xydata(corgi_ts)) {
|
||||
corgi_ts->pendown = 1;
|
||||
new_data(corgi_ts);
|
||||
@@ -214,7 +214,7 @@ static void ts_interrupt_main(struct corgi_ts *corgi_ts, int isTimer)
|
||||
}
|
||||
|
||||
/* Enable Falling Edge */
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQT_FALLING);
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_EDGE_FALLING);
|
||||
corgi_ts->pendown = 0;
|
||||
}
|
||||
}
|
||||
@@ -258,7 +258,7 @@ static int corgits_resume(struct platform_device *dev)
|
||||
|
||||
corgi_ssp_ads7846_putget((4u << ADSCTRL_ADR_SH) | ADSCTRL_STS);
|
||||
/* Enable Falling Edge */
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQT_FALLING);
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_EDGE_FALLING);
|
||||
corgi_ts->power_mode = PWR_MODE_ACTIVE;
|
||||
|
||||
return 0;
|
||||
@@ -333,7 +333,7 @@ static int __init corgits_probe(struct platform_device *pdev)
|
||||
corgi_ts->power_mode = PWR_MODE_ACTIVE;
|
||||
|
||||
/* Enable Falling Edge */
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQT_FALLING);
|
||||
set_irq_type(corgi_ts->irq_gpio, IRQ_TYPE_EDGE_FALLING);
|
||||
|
||||
return 0;
|
||||
|
||||
|
@@ -198,7 +198,7 @@ static int wm97xx_acc_startup(struct wm97xx *wm)
|
||||
switch (wm->id) {
|
||||
case WM9705_ID2:
|
||||
wm->pen_irq = IRQ_GPIO(4);
|
||||
set_irq_type(IRQ_GPIO(4), IRQT_BOTHEDGE);
|
||||
set_irq_type(IRQ_GPIO(4), IRQ_TYPE_EDGE_BOTH);
|
||||
break;
|
||||
case WM9712_ID2:
|
||||
case WM9713_ID2:
|
||||
|
Reference in New Issue
Block a user