Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
raspberrypi-kernel
提交
dced35ae
R
raspberrypi-kernel
项目概览
openeuler
/
raspberrypi-kernel
通知
13
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
R
raspberrypi-kernel
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
dced35ae
编写于
3月 28, 2011
作者:
T
Thomas Gleixner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
drivers: Final irq namespace conversion
Scripted with coccinelle. Signed-off-by:
N
Thomas Gleixner
<
tglx@linutronix.de
>
上级
2a8f55b1
变更
33
显示空白变更内容
内联
并排
Showing
33 changed file
with
70 addition
and
69 deletion
+70
-69
drivers/ata/pata_ixp4xx_cf.c
drivers/ata/pata_ixp4xx_cf.c
+1
-1
drivers/ata/pata_rb532_cf.c
drivers/ata/pata_rb532_cf.c
+2
-2
drivers/hwmon/gpio-fan.c
drivers/hwmon/gpio-fan.c
+1
-1
drivers/input/keyboard/lm8323.c
drivers/input/keyboard/lm8323.c
+2
-2
drivers/input/serio/ams_delta_serio.c
drivers/input/serio/ams_delta_serio.c
+1
-1
drivers/input/touchscreen/mainstone-wm97xx.c
drivers/input/touchscreen/mainstone-wm97xx.c
+1
-1
drivers/input/touchscreen/zylonite-wm97xx.c
drivers/input/touchscreen/zylonite-wm97xx.c
+1
-1
drivers/misc/sgi-gru/grufile.c
drivers/misc/sgi-gru/grufile.c
+1
-1
drivers/mmc/host/sdhci-spear.c
drivers/mmc/host/sdhci-spear.c
+1
-1
drivers/net/dm9000.c
drivers/net/dm9000.c
+4
-4
drivers/net/wireless/p54/p54spi.c
drivers/net/wireless/p54/p54spi.c
+1
-2
drivers/net/wireless/wl1251/sdio.c
drivers/net/wireless/wl1251/sdio.c
+1
-1
drivers/net/wireless/wl1251/spi.c
drivers/net/wireless/wl1251/spi.c
+1
-1
drivers/pci/dmar.c
drivers/pci/dmar.c
+6
-6
drivers/pci/htirq.c
drivers/pci/htirq.c
+8
-8
drivers/pci/intel-iommu.c
drivers/pci/intel-iommu.c
+1
-1
drivers/pci/intr_remapping.c
drivers/pci/intr_remapping.c
+1
-1
drivers/pci/msi.c
drivers/pci/msi.c
+5
-5
drivers/pcmcia/bfin_cf_pcmcia.c
drivers/pcmcia/bfin_cf_pcmcia.c
+1
-1
drivers/pcmcia/db1xxx_ss.c
drivers/pcmcia/db1xxx_ss.c
+1
-1
drivers/pcmcia/sa1100_nanoengine.c
drivers/pcmcia/sa1100_nanoengine.c
+1
-1
drivers/pcmcia/soc_common.c
drivers/pcmcia/soc_common.c
+7
-7
drivers/pcmcia/xxs1500_ss.c
drivers/pcmcia/xxs1500_ss.c
+1
-1
drivers/platform/x86/intel_pmic_gpio.c
drivers/platform/x86/intel_pmic_gpio.c
+5
-3
drivers/power/z2_battery.c
drivers/power/z2_battery.c
+2
-2
drivers/rtc/rtc-sh.c
drivers/rtc/rtc-sh.c
+3
-3
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
+2
-2
drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
...stbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
+1
-1
drivers/tty/hvc/hvc_xen.c
drivers/tty/hvc/hvc_xen.c
+1
-1
drivers/tty/serial/msm_serial_hs.c
drivers/tty/serial/msm_serial_hs.c
+2
-2
drivers/usb/host/oxu210hp-hcd.c
drivers/usb/host/oxu210hp-hcd.c
+1
-1
drivers/usb/musb/tusb6010.c
drivers/usb/musb/tusb6010.c
+1
-1
drivers/w1/masters/ds1wm.c
drivers/w1/masters/ds1wm.c
+2
-2
未找到文件。
drivers/ata/pata_ixp4xx_cf.c
浏览文件 @
dced35ae
...
...
@@ -167,7 +167,7 @@ static __devinit int ixp4xx_pata_probe(struct platform_device *pdev)
irq
=
platform_get_irq
(
pdev
,
0
);
if
(
irq
)
set_irq_type
(
irq
,
IRQ_TYPE_EDGE_RISING
);
irq_
set_irq_type
(
irq
,
IRQ_TYPE_EDGE_RISING
);
/* Setup expansion bus chip selects */
*
data
->
cs0_cfg
=
data
->
cs0_bits
;
...
...
drivers/ata/pata_rb532_cf.c
浏览文件 @
dced35ae
...
...
@@ -60,10 +60,10 @@ static irqreturn_t rb532_pata_irq_handler(int irq, void *dev_instance)
struct
rb532_cf_info
*
info
=
ah
->
private_data
;
if
(
gpio_get_value
(
info
->
gpio_line
))
{
set_irq_type
(
info
->
irq
,
IRQ_TYPE_LEVEL_LOW
);
irq_
set_irq_type
(
info
->
irq
,
IRQ_TYPE_LEVEL_LOW
);
ata_sff_interrupt
(
info
->
irq
,
dev_instance
);
}
else
{
set_irq_type
(
info
->
irq
,
IRQ_TYPE_LEVEL_HIGH
);
irq_
set_irq_type
(
info
->
irq
,
IRQ_TYPE_LEVEL_HIGH
);
}
return
IRQ_HANDLED
;
...
...
drivers/hwmon/gpio-fan.c
浏览文件 @
dced35ae
...
...
@@ -116,7 +116,7 @@ static int fan_alarm_init(struct gpio_fan_data *fan_data,
return
0
;
INIT_WORK
(
&
fan_data
->
alarm_work
,
fan_alarm_notify
);
set_irq_type
(
alarm_irq
,
IRQ_TYPE_EDGE_BOTH
);
irq_
set_irq_type
(
alarm_irq
,
IRQ_TYPE_EDGE_BOTH
);
err
=
request_irq
(
alarm_irq
,
fan_alarm_irq_handler
,
IRQF_SHARED
,
"GPIO fan alarm"
,
fan_data
);
if
(
err
)
...
...
drivers/input/keyboard/lm8323.c
浏览文件 @
dced35ae
...
...
@@ -809,7 +809,7 @@ static int lm8323_suspend(struct device *dev)
struct
lm8323_chip
*
lm
=
i2c_get_clientdata
(
client
);
int
i
;
set_irq_wake
(
client
->
irq
,
0
);
irq_
set_irq_wake
(
client
->
irq
,
0
);
disable_irq
(
client
->
irq
);
mutex_lock
(
&
lm
->
lock
);
...
...
@@ -838,7 +838,7 @@ static int lm8323_resume(struct device *dev)
led_classdev_resume
(
&
lm
->
pwm
[
i
].
cdev
);
enable_irq
(
client
->
irq
);
set_irq_wake
(
client
->
irq
,
1
);
irq_
set_irq_wake
(
client
->
irq
,
1
);
return
0
;
}
...
...
drivers/input/serio/ams_delta_serio.c
浏览文件 @
dced35ae
...
...
@@ -149,7 +149,7 @@ static int __init ams_delta_serio_init(void)
* at FIQ level, switch back from edge to simple interrupt handler
* to avoid bad interaction.
*/
set_irq
_handler
(
gpio_to_irq
(
AMS_DELTA_GPIO_PIN_KEYBRD_CLK
),
irq_set
_handler
(
gpio_to_irq
(
AMS_DELTA_GPIO_PIN_KEYBRD_CLK
),
handle_simple_irq
);
serio_register_port
(
ams_delta_serio
);
...
...
drivers/input/touchscreen/mainstone-wm97xx.c
浏览文件 @
dced35ae
...
...
@@ -219,7 +219,7 @@ static int wm97xx_acc_startup(struct wm97xx *wm)
}
wm
->
pen_irq
=
gpio_to_irq
(
irq
);
set_irq_type
(
wm
->
pen_irq
,
IRQ_TYPE_EDGE_BOTH
);
irq_
set_irq_type
(
wm
->
pen_irq
,
IRQ_TYPE_EDGE_BOTH
);
}
else
/* pen irq not supported */
pen_int
=
0
;
...
...
drivers/input/touchscreen/zylonite-wm97xx.c
浏览文件 @
dced35ae
...
...
@@ -193,7 +193,7 @@ static int zylonite_wm97xx_probe(struct platform_device *pdev)
gpio_touch_irq
=
mfp_to_gpio
(
MFP_PIN_GPIO26
);
wm
->
pen_irq
=
IRQ_GPIO
(
gpio_touch_irq
);
set_irq_type
(
IRQ_GPIO
(
gpio_touch_irq
),
IRQ_TYPE_EDGE_BOTH
);
irq_
set_irq_type
(
IRQ_GPIO
(
gpio_touch_irq
),
IRQ_TYPE_EDGE_BOTH
);
wm97xx_config_gpio
(
wm
,
WM97XX_GPIO_13
,
WM97XX_GPIO_IN
,
WM97XX_GPIO_POL_HIGH
,
...
...
drivers/misc/sgi-gru/grufile.c
浏览文件 @
dced35ae
...
...
@@ -373,7 +373,7 @@ static int gru_chiplet_setup_tlb_irq(int chiplet, char *irq_name,
if
(
gru_irq_count
[
chiplet
]
==
0
)
{
gru_chip
[
chiplet
].
name
=
irq_name
;
ret
=
set_irq
_chip
(
irq
,
&
gru_chip
[
chiplet
]);
ret
=
irq_set
_chip
(
irq
,
&
gru_chip
[
chiplet
]);
if
(
ret
)
{
printk
(
KERN_ERR
"%s: set_irq_chip failed, errno=%d
\n
"
,
GRU_DRIVER_ID_STR
,
-
ret
);
...
...
drivers/mmc/host/sdhci-spear.c
浏览文件 @
dced35ae
...
...
@@ -50,7 +50,7 @@ static irqreturn_t sdhci_gpio_irq(int irq, void *dev_id)
/* val == 1 -> card removed, val == 0 -> card inserted */
/* if card removed - set irq for low level, else vice versa */
gpio_irq_type
=
val
?
IRQF_TRIGGER_LOW
:
IRQF_TRIGGER_HIGH
;
set_irq_type
(
irq
,
gpio_irq_type
);
irq_
set_irq_type
(
irq
,
gpio_irq_type
);
if
(
sdhci
->
data
->
card_power_gpio
>=
0
)
{
if
(
!
sdhci
->
data
->
power_always_enb
)
{
...
...
drivers/net/dm9000.c
浏览文件 @
dced35ae
...
...
@@ -621,9 +621,9 @@ static int dm9000_set_wol(struct net_device *dev, struct ethtool_wolinfo *w)
/* change in wol state, update IRQ state */
if
(
!
dm
->
wake_state
)
set_irq_wake
(
dm
->
irq_wake
,
1
);
irq_
set_irq_wake
(
dm
->
irq_wake
,
1
);
else
if
(
dm
->
wake_state
&
!
opts
)
set_irq_wake
(
dm
->
irq_wake
,
0
);
irq_
set_irq_wake
(
dm
->
irq_wake
,
0
);
}
dm
->
wake_state
=
opts
;
...
...
@@ -1424,13 +1424,13 @@ dm9000_probe(struct platform_device *pdev)
}
else
{
/* test to see if irq is really wakeup capable */
ret
=
set_irq_wake
(
db
->
irq_wake
,
1
);
ret
=
irq_
set_irq_wake
(
db
->
irq_wake
,
1
);
if
(
ret
)
{
dev_err
(
db
->
dev
,
"irq %d cannot set wakeup (%d)
\n
"
,
db
->
irq_wake
,
ret
);
ret
=
0
;
}
else
{
set_irq_wake
(
db
->
irq_wake
,
0
);
irq_
set_irq_wake
(
db
->
irq_wake
,
0
);
db
->
wake_supported
=
1
;
}
}
...
...
drivers/net/wireless/p54/p54spi.c
浏览文件 @
dced35ae
...
...
@@ -649,8 +649,7 @@ static int __devinit p54spi_probe(struct spi_device *spi)
goto
err_free_common
;
}
set_irq_type
(
gpio_to_irq
(
p54spi_gpio_irq
),
IRQ_TYPE_EDGE_RISING
);
irq_set_irq_type
(
gpio_to_irq
(
p54spi_gpio_irq
),
IRQ_TYPE_EDGE_RISING
);
disable_irq
(
gpio_to_irq
(
p54spi_gpio_irq
));
...
...
drivers/net/wireless/wl1251/sdio.c
浏览文件 @
dced35ae
...
...
@@ -265,7 +265,7 @@ static int wl1251_sdio_probe(struct sdio_func *func,
goto
disable
;
}
set_irq_type
(
wl
->
irq
,
IRQ_TYPE_EDGE_RISING
);
irq_
set_irq_type
(
wl
->
irq
,
IRQ_TYPE_EDGE_RISING
);
disable_irq
(
wl
->
irq
);
wl1251_sdio_ops
.
enable_irq
=
wl1251_enable_line_irq
;
...
...
drivers/net/wireless/wl1251/spi.c
浏览文件 @
dced35ae
...
...
@@ -286,7 +286,7 @@ static int __devinit wl1251_spi_probe(struct spi_device *spi)
goto
out_free
;
}
set_irq_type
(
wl
->
irq
,
IRQ_TYPE_EDGE_RISING
);
irq_
set_irq_type
(
wl
->
irq
,
IRQ_TYPE_EDGE_RISING
);
disable_irq
(
wl
->
irq
);
...
...
drivers/pci/dmar.c
浏览文件 @
dced35ae
...
...
@@ -1226,7 +1226,7 @@ const char *dmar_get_fault_reason(u8 fault_reason, int *fault_type)
void
dmar_msi_unmask
(
struct
irq_data
*
data
)
{
struct
intel_iommu
*
iommu
=
irq_data_get_irq_data
(
data
);
struct
intel_iommu
*
iommu
=
irq_data_get_irq_
handler_
data
(
data
);
unsigned
long
flag
;
/* unmask it */
...
...
@@ -1240,7 +1240,7 @@ void dmar_msi_unmask(struct irq_data *data)
void
dmar_msi_mask
(
struct
irq_data
*
data
)
{
unsigned
long
flag
;
struct
intel_iommu
*
iommu
=
irq_data_get_irq_data
(
data
);
struct
intel_iommu
*
iommu
=
irq_data_get_irq_
handler_
data
(
data
);
/* mask it */
spin_lock_irqsave
(
&
iommu
->
register_lock
,
flag
);
...
...
@@ -1252,7 +1252,7 @@ void dmar_msi_mask(struct irq_data *data)
void
dmar_msi_write
(
int
irq
,
struct
msi_msg
*
msg
)
{
struct
intel_iommu
*
iommu
=
get_irq
_data
(
irq
);
struct
intel_iommu
*
iommu
=
irq_get_handler
_data
(
irq
);
unsigned
long
flag
;
spin_lock_irqsave
(
&
iommu
->
register_lock
,
flag
);
...
...
@@ -1264,7 +1264,7 @@ void dmar_msi_write(int irq, struct msi_msg *msg)
void
dmar_msi_read
(
int
irq
,
struct
msi_msg
*
msg
)
{
struct
intel_iommu
*
iommu
=
get_irq
_data
(
irq
);
struct
intel_iommu
*
iommu
=
irq_get_handler
_data
(
irq
);
unsigned
long
flag
;
spin_lock_irqsave
(
&
iommu
->
register_lock
,
flag
);
...
...
@@ -1382,12 +1382,12 @@ int dmar_set_interrupt(struct intel_iommu *iommu)
return
-
EINVAL
;
}
set_irq
_data
(
irq
,
iommu
);
irq_set_handler
_data
(
irq
,
iommu
);
iommu
->
irq
=
irq
;
ret
=
arch_setup_dmar_msi
(
irq
);
if
(
ret
)
{
set_irq
_data
(
irq
,
NULL
);
irq_set_handler
_data
(
irq
,
NULL
);
iommu
->
irq
=
0
;
destroy_irq
(
irq
);
return
ret
;
...
...
drivers/pci/htirq.c
浏览文件 @
dced35ae
...
...
@@ -34,7 +34,7 @@ struct ht_irq_cfg {
void
write_ht_irq_msg
(
unsigned
int
irq
,
struct
ht_irq_msg
*
msg
)
{
struct
ht_irq_cfg
*
cfg
=
get_irq
_data
(
irq
);
struct
ht_irq_cfg
*
cfg
=
irq_get_handler
_data
(
irq
);
unsigned
long
flags
;
spin_lock_irqsave
(
&
ht_irq_lock
,
flags
);
if
(
cfg
->
msg
.
address_lo
!=
msg
->
address_lo
)
{
...
...
@@ -53,13 +53,13 @@ void write_ht_irq_msg(unsigned int irq, struct ht_irq_msg *msg)
void
fetch_ht_irq_msg
(
unsigned
int
irq
,
struct
ht_irq_msg
*
msg
)
{
struct
ht_irq_cfg
*
cfg
=
get_irq
_data
(
irq
);
struct
ht_irq_cfg
*
cfg
=
irq_get_handler
_data
(
irq
);
*
msg
=
cfg
->
msg
;
}
void
mask_ht_irq
(
struct
irq_data
*
data
)
{
struct
ht_irq_cfg
*
cfg
=
irq_data_get_irq_data
(
data
);
struct
ht_irq_cfg
*
cfg
=
irq_data_get_irq_
handler_
data
(
data
);
struct
ht_irq_msg
msg
=
cfg
->
msg
;
msg
.
address_lo
|=
1
;
...
...
@@ -68,7 +68,7 @@ void mask_ht_irq(struct irq_data *data)
void
unmask_ht_irq
(
struct
irq_data
*
data
)
{
struct
ht_irq_cfg
*
cfg
=
irq_data_get_irq_data
(
data
);
struct
ht_irq_cfg
*
cfg
=
irq_data_get_irq_
handler_
data
(
data
);
struct
ht_irq_msg
msg
=
cfg
->
msg
;
msg
.
address_lo
&=
~
1
;
...
...
@@ -126,7 +126,7 @@ int __ht_create_irq(struct pci_dev *dev, int idx, ht_irq_update_t *update)
kfree
(
cfg
);
return
-
EBUSY
;
}
set_irq
_data
(
irq
,
cfg
);
irq_set_handler
_data
(
irq
,
cfg
);
if
(
arch_setup_ht_irq
(
irq
,
dev
)
<
0
)
{
ht_destroy_irq
(
irq
);
...
...
@@ -162,9 +162,9 @@ void ht_destroy_irq(unsigned int irq)
{
struct
ht_irq_cfg
*
cfg
;
cfg
=
get_irq
_data
(
irq
);
set_irq
_chip
(
irq
,
NULL
);
set_irq
_data
(
irq
,
NULL
);
cfg
=
irq_get_handler
_data
(
irq
);
irq_set
_chip
(
irq
,
NULL
);
irq_set_handler
_data
(
irq
,
NULL
);
destroy_irq
(
irq
);
kfree
(
cfg
);
...
...
drivers/pci/intel-iommu.c
浏览文件 @
dced35ae
...
...
@@ -1206,7 +1206,7 @@ void free_dmar_iommu(struct intel_iommu *iommu)
iommu_disable_translation
(
iommu
);
if
(
iommu
->
irq
)
{
set_irq
_data
(
iommu
->
irq
,
NULL
);
irq_set_handler
_data
(
iommu
->
irq
,
NULL
);
/* This will mask the irq */
free_irq
(
iommu
->
irq
,
iommu
);
destroy_irq
(
iommu
->
irq
);
...
...
drivers/pci/intr_remapping.c
浏览文件 @
dced35ae
...
...
@@ -50,7 +50,7 @@ static DEFINE_SPINLOCK(irq_2_ir_lock);
static
struct
irq_2_iommu
*
irq_2_iommu
(
unsigned
int
irq
)
{
struct
irq_cfg
*
cfg
=
get_irq
_chip_data
(
irq
);
struct
irq_cfg
*
cfg
=
irq_get
_chip_data
(
irq
);
return
cfg
?
&
cfg
->
irq_2_iommu
:
NULL
;
}
...
...
drivers/pci/msi.c
浏览文件 @
dced35ae
...
...
@@ -236,7 +236,7 @@ void __read_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
void
read_msi_msg
(
unsigned
int
irq
,
struct
msi_msg
*
msg
)
{
struct
msi_desc
*
entry
=
get_irq_msi
(
irq
);
struct
msi_desc
*
entry
=
irq_get_msi_desc
(
irq
);
__read_msi_msg
(
entry
,
msg
);
}
...
...
@@ -253,7 +253,7 @@ void __get_cached_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
void
get_cached_msi_msg
(
unsigned
int
irq
,
struct
msi_msg
*
msg
)
{
struct
msi_desc
*
entry
=
get_irq_msi
(
irq
);
struct
msi_desc
*
entry
=
irq_get_msi_desc
(
irq
);
__get_cached_msi_msg
(
entry
,
msg
);
}
...
...
@@ -297,7 +297,7 @@ void __write_msi_msg(struct msi_desc *entry, struct msi_msg *msg)
void
write_msi_msg
(
unsigned
int
irq
,
struct
msi_msg
*
msg
)
{
struct
msi_desc
*
entry
=
get_irq_msi
(
irq
);
struct
msi_desc
*
entry
=
irq_get_msi_desc
(
irq
);
__write_msi_msg
(
entry
,
msg
);
}
...
...
@@ -354,7 +354,7 @@ static void __pci_restore_msi_state(struct pci_dev *dev)
if
(
!
dev
->
msi_enabled
)
return
;
entry
=
get_irq_msi
(
dev
->
irq
);
entry
=
irq_get_msi_desc
(
dev
->
irq
);
pos
=
entry
->
msi_attrib
.
pos
;
pci_intx_for_msi
(
dev
,
0
);
...
...
@@ -519,7 +519,7 @@ static void msix_program_entries(struct pci_dev *dev,
PCI_MSIX_ENTRY_VECTOR_CTRL
;
entries
[
i
].
vector
=
entry
->
irq
;
set_irq_msi
(
entry
->
irq
,
entry
);
irq_set_msi_desc
(
entry
->
irq
,
entry
);
entry
->
masked
=
readl
(
entry
->
mask_base
+
offset
);
msix_mask_irq
(
entry
,
1
);
i
++
;
...
...
drivers/pcmcia/bfin_cf_pcmcia.c
浏览文件 @
dced35ae
...
...
@@ -235,7 +235,7 @@ static int __devinit bfin_cf_probe(struct platform_device *pdev)
cf
->
irq
=
irq
;
cf
->
socket
.
pci_irq
=
irq
;
set_irq_type
(
irq
,
IRQF_TRIGGER_LOW
);
irq_
set_irq_type
(
irq
,
IRQF_TRIGGER_LOW
);
io_mem
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
0
);
attr_mem
=
platform_get_resource
(
pdev
,
IORESOURCE_MEM
,
1
);
...
...
drivers/pcmcia/db1xxx_ss.c
浏览文件 @
dced35ae
...
...
@@ -181,7 +181,7 @@ static int db1x_pcmcia_setup_irqs(struct db1x_pcmcia_sock *sock)
/* all other (older) Db1x00 boards use a GPIO to show
* card detection status: use both-edge triggers.
*/
set_irq_type
(
sock
->
insert_irq
,
IRQ_TYPE_EDGE_BOTH
);
irq_
set_irq_type
(
sock
->
insert_irq
,
IRQ_TYPE_EDGE_BOTH
);
ret
=
request_irq
(
sock
->
insert_irq
,
db1000_pcmcia_cdirq
,
0
,
"pcmcia_carddetect"
,
sock
);
...
...
drivers/pcmcia/sa1100_nanoengine.c
浏览文件 @
dced35ae
...
...
@@ -86,7 +86,7 @@ static int nanoengine_pcmcia_hw_init(struct soc_pcmcia_socket *skt)
GPDR
&=
~
nano_skts
[
i
].
input_pins
;
GPDR
|=
nano_skts
[
i
].
output_pins
;
GPCR
=
nano_skts
[
i
].
clear_outputs
;
set_irq_type
(
nano_skts
[
i
].
transition_pins
,
IRQ_TYPE_EDGE_BOTH
);
irq_
set_irq_type
(
nano_skts
[
i
].
transition_pins
,
IRQ_TYPE_EDGE_BOTH
);
skt
->
socket
.
pci_irq
=
nano_skts
[
i
].
pci_irq
;
return
soc_pcmcia_request_irqs
(
skt
,
...
...
drivers/pcmcia/soc_common.c
浏览文件 @
dced35ae
...
...
@@ -155,11 +155,11 @@ static int soc_common_pcmcia_config_skt(
*/
if
(
skt
->
irq_state
!=
1
&&
state
->
io_irq
)
{
skt
->
irq_state
=
1
;
set_irq_type
(
skt
->
socket
.
pci_irq
,
irq_
set_irq_type
(
skt
->
socket
.
pci_irq
,
IRQ_TYPE_EDGE_FALLING
);
}
else
if
(
skt
->
irq_state
==
1
&&
state
->
io_irq
==
0
)
{
skt
->
irq_state
=
0
;
set_irq_type
(
skt
->
socket
.
pci_irq
,
IRQ_TYPE_NONE
);
irq_
set_irq_type
(
skt
->
socket
.
pci_irq
,
IRQ_TYPE_NONE
);
}
skt
->
cs_state
=
*
state
;
...
...
@@ -537,7 +537,7 @@ int soc_pcmcia_request_irqs(struct soc_pcmcia_socket *skt,
IRQF_DISABLED
,
irqs
[
i
].
str
,
skt
);
if
(
res
)
break
;
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_NONE
);
irq_
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_NONE
);
}
if
(
res
)
{
...
...
@@ -570,7 +570,7 @@ void soc_pcmcia_disable_irqs(struct soc_pcmcia_socket *skt,
for
(
i
=
0
;
i
<
nr
;
i
++
)
if
(
irqs
[
i
].
sock
==
skt
->
nr
)
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_NONE
);
irq_
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_NONE
);
}
EXPORT_SYMBOL
(
soc_pcmcia_disable_irqs
);
...
...
@@ -581,8 +581,8 @@ void soc_pcmcia_enable_irqs(struct soc_pcmcia_socket *skt,
for
(
i
=
0
;
i
<
nr
;
i
++
)
if
(
irqs
[
i
].
sock
==
skt
->
nr
)
{
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_EDGE_RISING
);
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_EDGE_BOTH
);
irq_
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_EDGE_RISING
);
irq_
set_irq_type
(
irqs
[
i
].
irq
,
IRQ_TYPE_EDGE_BOTH
);
}
}
EXPORT_SYMBOL
(
soc_pcmcia_enable_irqs
);
...
...
drivers/pcmcia/xxs1500_ss.c
浏览文件 @
dced35ae
...
...
@@ -274,7 +274,7 @@ static int __devinit xxs1500_pcmcia_probe(struct platform_device *pdev)
* edge detector.
*/
irq
=
gpio_to_irq
(
GPIO_CDA
);
set_irq_type
(
irq
,
IRQ_TYPE_EDGE_BOTH
);
irq_
set_irq_type
(
irq
,
IRQ_TYPE_EDGE_BOTH
);
ret
=
request_irq
(
irq
,
cdirq
,
0
,
"pcmcia_carddetect"
,
sock
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"cannot setup cd irq
\n
"
);
...
...
drivers/platform/x86/intel_pmic_gpio.c
浏览文件 @
dced35ae
...
...
@@ -257,9 +257,11 @@ static int __devinit platform_pmic_gpio_probe(struct platform_device *pdev)
}
for
(
i
=
0
;
i
<
8
;
i
++
)
{
set_irq_chip_and_handler_name
(
i
+
pg
->
irq_base
,
&
pmic_irqchip
,
handle_simple_irq
,
"demux"
);
set_irq_chip_data
(
i
+
pg
->
irq_base
,
pg
);
irq_set_chip_and_handler_name
(
i
+
pg
->
irq_base
,
&
pmic_irqchip
,
handle_simple_irq
,
"demux"
);
irq_set_chip_data
(
i
+
pg
->
irq_base
,
pg
);
}
return
0
;
err:
...
...
drivers/power/z2_battery.c
浏览文件 @
dced35ae
...
...
@@ -215,7 +215,7 @@ static int __devinit z2_batt_probe(struct i2c_client *client,
if
(
ret
)
goto
err2
;
set_irq_type
(
gpio_to_irq
(
info
->
charge_gpio
),
irq_
set_irq_type
(
gpio_to_irq
(
info
->
charge_gpio
),
IRQ_TYPE_EDGE_BOTH
);
ret
=
request_irq
(
gpio_to_irq
(
info
->
charge_gpio
),
z2_charge_switch_irq
,
IRQF_DISABLED
,
...
...
drivers/rtc/rtc-sh.c
浏览文件 @
dced35ae
...
...
@@ -782,11 +782,11 @@ static void sh_rtc_set_irq_wake(struct device *dev, int enabled)
struct
platform_device
*
pdev
=
to_platform_device
(
dev
);
struct
sh_rtc
*
rtc
=
platform_get_drvdata
(
pdev
);
set_irq_wake
(
rtc
->
periodic_irq
,
enabled
);
irq_
set_irq_wake
(
rtc
->
periodic_irq
,
enabled
);
if
(
rtc
->
carry_irq
>
0
)
{
set_irq_wake
(
rtc
->
carry_irq
,
enabled
);
set_irq_wake
(
rtc
->
alarm_irq
,
enabled
);
irq_
set_irq_wake
(
rtc
->
carry_irq
,
enabled
);
irq_
set_irq_wake
(
rtc
->
alarm_irq
,
enabled
);
}
}
...
...
drivers/staging/brcm80211/brcmfmac/bcmsdh_linux.c
浏览文件 @
dced35ae
...
...
@@ -341,7 +341,7 @@ int bcmsdh_register_oob_intr(void *dhdp)
if
(
error
)
return
-
ENODEV
;
set_irq_wake
(
sdhcinfo
->
oob_irq
,
1
);
irq_
set_irq_wake
(
sdhcinfo
->
oob_irq
,
1
);
sdhcinfo
->
oob_irq_registered
=
true
;
}
...
...
@@ -352,7 +352,7 @@ void bcmsdh_unregister_oob_intr(void)
{
SDLX_MSG
((
"%s: Enter
\n
"
,
__func__
));
set_irq_wake
(
sdhcinfo
->
oob_irq
,
0
);
irq_
set_irq_wake
(
sdhcinfo
->
oob_irq
,
0
);
disable_irq
(
sdhcinfo
->
oob_irq
);
/* just in case.. */
free_irq
(
sdhcinfo
->
oob_irq
,
NULL
);
sdhcinfo
->
oob_irq_registered
=
false
;
...
...
drivers/staging/westbridge/astoria/arch/arm/mach-omap2/cyashalomap_kernel.c
浏览文件 @
dced35ae
...
...
@@ -597,7 +597,7 @@ static int cy_as_hal_configure_interrupts(void *dev_p)
int
result
;
int
irq_pin
=
AST_INT
;
set_irq_type
(
OMAP_GPIO_IRQ
(
irq_pin
),
IRQ_TYPE_LEVEL_LOW
);
irq_
set_irq_type
(
OMAP_GPIO_IRQ
(
irq_pin
),
IRQ_TYPE_LEVEL_LOW
);
/*
* for shared IRQS must provide non NULL device ptr
...
...
drivers/tty/hvc/hvc_xen.c
浏览文件 @
dced35ae
...
...
@@ -178,7 +178,7 @@ static int __init xen_hvc_init(void)
if
(
xencons_irq
<
0
)
xencons_irq
=
0
;
/* NO_IRQ */
else
set_irq
_noprobe
(
xencons_irq
);
irq_set
_noprobe
(
xencons_irq
);
hp
=
hvc_alloc
(
HVC_COOKIE
,
xencons_irq
,
ops
,
256
);
if
(
IS_ERR
(
hp
))
...
...
drivers/tty/serial/msm_serial_hs.c
浏览文件 @
dced35ae
...
...
@@ -1644,7 +1644,7 @@ static int __devinit msm_hs_probe(struct platform_device *pdev)
if
(
unlikely
(
uport
->
irq
<
0
))
return
-
ENXIO
;
if
(
unlikely
(
set_irq_wake
(
uport
->
irq
,
1
)))
if
(
unlikely
(
irq_
set_irq_wake
(
uport
->
irq
,
1
)))
return
-
ENXIO
;
if
(
pdata
==
NULL
||
pdata
->
rx_wakeup_irq
<
0
)
...
...
@@ -1658,7 +1658,7 @@ static int __devinit msm_hs_probe(struct platform_device *pdev)
if
(
unlikely
(
msm_uport
->
rx_wakeup
.
irq
<
0
))
return
-
ENXIO
;
if
(
unlikely
(
set_irq_wake
(
msm_uport
->
rx_wakeup
.
irq
,
1
)))
if
(
unlikely
(
irq_
set_irq_wake
(
msm_uport
->
rx_wakeup
.
irq
,
1
)))
return
-
ENXIO
;
}
...
...
drivers/usb/host/oxu210hp-hcd.c
浏览文件 @
dced35ae
...
...
@@ -3832,7 +3832,7 @@ static int oxu_drv_probe(struct platform_device *pdev)
return
-
EBUSY
;
}
ret
=
set_irq_type
(
irq
,
IRQF_TRIGGER_FALLING
);
ret
=
irq_
set_irq_type
(
irq
,
IRQF_TRIGGER_FALLING
);
if
(
ret
)
{
dev_err
(
&
pdev
->
dev
,
"error setting irq type
\n
"
);
ret
=
-
EFAULT
;
...
...
drivers/usb/musb/tusb6010.c
浏览文件 @
dced35ae
...
...
@@ -943,7 +943,7 @@ static void tusb_musb_enable(struct musb *musb)
musb_writel
(
tbase
,
TUSB_INT_CTRL_CONF
,
TUSB_INT_CTRL_CONF_INT_RELCYC
(
0
));
set_irq_type
(
musb
->
nIrq
,
IRQ_TYPE_LEVEL_LOW
);
irq_
set_irq_type
(
musb
->
nIrq
,
IRQ_TYPE_LEVEL_LOW
);
/* maybe force into the Default-A OTG state machine */
if
(
!
(
musb_readl
(
tbase
,
TUSB_DEV_OTG_STAT
)
...
...
drivers/w1/masters/ds1wm.c
浏览文件 @
dced35ae
...
...
@@ -368,9 +368,9 @@ static int ds1wm_probe(struct platform_device *pdev)
ds1wm_data
->
active_high
=
plat
->
active_high
;
if
(
res
->
flags
&
IORESOURCE_IRQ_HIGHEDGE
)
set_irq_type
(
ds1wm_data
->
irq
,
IRQ_TYPE_EDGE_RISING
);
irq_
set_irq_type
(
ds1wm_data
->
irq
,
IRQ_TYPE_EDGE_RISING
);
if
(
res
->
flags
&
IORESOURCE_IRQ_LOWEDGE
)
set_irq_type
(
ds1wm_data
->
irq
,
IRQ_TYPE_EDGE_FALLING
);
irq_
set_irq_type
(
ds1wm_data
->
irq
,
IRQ_TYPE_EDGE_FALLING
);
ret
=
request_irq
(
ds1wm_data
->
irq
,
ds1wm_isr
,
IRQF_DISABLED
,
"ds1wm"
,
ds1wm_data
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录