Merge "soc: qcom: irq-helper: Add header file of irq-helper"

This commit is contained in:
Linux Build Service Account 2016-08-10 12:42:02 -07:00 committed by Gerrit - the friendly Code Review server
commit 21c2cba833
4 changed files with 24 additions and 1 deletions

View file

@ -497,6 +497,7 @@ CONFIG_MSM_GLINK_PKT=y
CONFIG_MSM_SPM=y
CONFIG_QCOM_SCM=y
CONFIG_QCOM_WATCHDOG_V2=y
CONFIG_QCOM_IRQ_HELPER=y
CONFIG_QCOM_MEMORY_DUMP_V2=y
CONFIG_ICNSS=y
CONFIG_MSM_RUN_QUEUE_STATS=y

View file

@ -512,6 +512,7 @@ CONFIG_MSM_GLINK_PKT=y
CONFIG_MSM_SPM=y
CONFIG_QCOM_SCM=y
CONFIG_QCOM_WATCHDOG_V2=y
CONFIG_QCOM_IRQ_HELPER=y
CONFIG_QCOM_MEMORY_DUMP_V2=y
CONFIG_ICNSS=y
CONFIG_MSM_GLADIATOR_ERP_V2=y

View file

@ -18,6 +18,7 @@
#include <linux/kobject.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <soc/qcom/irq-helper.h>
struct irq_helper {
bool enable;
@ -161,7 +162,7 @@ static int __init irq_helper_init(void)
irq_h->enable = true;
return 0;
out_put_kobj:
koject_put(&irq_h->kobj);
kobject_put(&irq_h->kobj);
out_free_irq:
kfree(irq_h);
return ret;

View file

@ -0,0 +1,20 @@
/* Copyright (c) 2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
* only version 2 as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __SOC_QCOM_IRQ_HELPER_H
#define __SOC_QCOM_IRQ_HELPER_H
int irq_blacklist_on(void);
int irq_blacklist_off(void);
#endif