* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <linux/config.h>
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/clk.h>
#include <linux/platform_device.h>
-#include <asm/arch/hardware.h>
-#include <asm/arch/gpio.h>
-#include <asm/arch/board.h>
-#include <asm/arch/irqs.h>
+#include <mach/hardware.h>
+#include <mach/gpio.h>
+#include <mach/board.h>
+#include <mach/irqs.h>
#include <net/bluetooth/bluetooth.h>
#include <net/bluetooth/hci_core.h>
spin_unlock_irqrestore(&info->lock, flags);
}
-static irqreturn_t brf6150_interrupt(int irq, void *data, struct pt_regs *regs)
+static irqreturn_t brf6150_interrupt(int irq, void *data)
{
struct brf6150_info *info = (struct brf6150_info *)data;
u8 iir, msr;
return ret;
}
-static irqreturn_t brf6150_wakeup_interrupt(int irq, void *dev_inst,
- struct pt_regs *regs)
+static irqreturn_t brf6150_wakeup_interrupt(int irq, void *dev_inst)
{
struct brf6150_info *info = dev_inst;
int should_wakeup;
info->garbage_bytes = 0;
info->rx_skb = NULL;
info->pm_enabled = 0;
- set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQT_NOEDGE);
+ set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQ_TYPE_NONE);
init_completion(&info->fw_completion);
clk_enable(info->uart_ck);
if (err < 0)
printk(KERN_ERR "brf6150: Sending firmware failed. Bluetooth won't work properly\n");
- set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQT_BOTHEDGE);
+ set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQ_TYPE_EDGE_BOTH);
info->pm_enabled = 1;
set_bit(HCI_RUNNING, &hdev->flags);
return 0;
clk_disable(info->uart_ck);
del_timer_sync(&info->pm_timer);
omap_set_gpio_dataout(info->btinfo->bt_wakeup_gpio, 0);
- set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQT_NOEDGE);
+ set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQ_TYPE_NONE);
return 0;
}
omap_set_gpio_direction(info->btinfo->reset_gpio, 0);
omap_set_gpio_direction(info->btinfo->bt_wakeup_gpio, 0);
omap_set_gpio_direction(info->btinfo->host_wakeup_gpio, 1);
- set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQT_NOEDGE);
+ set_irq_type(OMAP_GPIO_IRQ(info->btinfo->host_wakeup_gpio), IRQ_TYPE_NONE);
switch (info->btinfo->bt_uart) {
case 1: