/* * Copyright 2014 Oleksij Rempel * * This software is licensed under the terms of the GNU General Public * License version 2, as published by the Free Software Foundation, and * may be copied, distributed, and modified under those terms. * * 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 _DT_BINDINGS_CLK_ASM9260_H #define _DT_BINDINGS_CLK_ASM9260_H /* ahb gate */ #define CLKID_AHB_ROM 0 #define CLKID_AHB_RAM 1 #define CLKID_AHB_GPIO 2 #define CLKID_AHB_MAC 3 #define CLKID_AHB_EMI 4 #define CLKID_AHB_USB0 5 #define CLKID_AHB_USB1 6 #define CLKID_AHB_DMA0 7 #define CLKID_AHB_DMA1 8 #define CLKID_AHB_UART0 9 #define CLKID_AHB_UART1 10 #define CLKID_AHB_UART2 11 #define CLKID_AHB_UART3 12 #define CLKID_AHB_UART4 13 #define CLKID_AHB_UART5 14 #define CLKID_AHB_UART6 15 #define CLKID_AHB_UART7 16 #define CLKID_AHB_UART8 17 #define CLKID_AHB_UART9 18 #define CLKID_AHB_I2S0 19 #define CLKID_AHB_I2C0 20 #define CLKID_AHB_I2C1 21 #define CLKID_AHB_SSP0 22 #define CLKID_AHB_IOCONFIG 23 #define CLKID_AHB_WDT 24 #define CLKID_AHB_CAN0 25 #define CLKID_AHB_CAN1 26 #define CLKID_AHB_MPWM 27 #define CLKID_AHB_SPI0 28 #define CLKID_AHB_SPI1 29 #define CLKID_AHB_QEI 30 #define CLKID_AHB_QUADSPI0 31 #define CLKID_AHB_CAMIF 32 #define CLKID_AHB_LCDIF 33 #define CLKID_AHB_TIMER0 34 #define CLKID_AHB_TIMER1 35 #define CLKID_AHB_TIMER2 36 #define CLKID_AHB_TIMER3 37 #define CLKID_AHB_IRQ 38 #define CLKID_AHB_RTC 39 #define CLKID_AHB_NAND 40 #define CLKID_AHB_ADC0 41 #define CLKID_AHB_LED 42 #define CLKID_AHB_DAC0 43 #define CLKID_AHB_LCD 44 #define CLKID_AHB_I2S1 45 #define CLKID_AHB_MAC1 46 /* devider */ #define CLKID_SYS_CPU 47 #define CLKID_SYS_AHB 48 #define CLKID_SYS_I2S0M 49 #define CLKID_SYS_I2S0S 50 #define CLKID_SYS_I2S1M 51 #define CLKID_SYS_I2S1S 52 #define CLKID_SYS_UART0 53 #define CLKID_SYS_UART1 54 #define CLKID_SYS_UART2 55 #define CLKID_SYS_UART3 56 #define CLKID_SYS_UART4 56 #define CLKID_SYS_UART5 57 #define CLKID_SYS_UART6 58 #define CLKID_SYS_UART7 59 #define CLKID_SYS_UART8 60 #define CLKID_SYS_UART9 61 #define CLKID_SYS_SPI0 62 #define CLKID_SYS_SPI1 63 #define CLKID_SYS_QUADSPI 64 #define CLKID_SYS_SSP0 65 #define CLKID_SYS_NAND 66 #define CLKID_SYS_TRACE 67 #define CLKID_SYS_CAMM 68 #define CLKID_SYS_WDT 69 #define CLKID_SYS_CLKOUT 70 #define CLKID_SYS_MAC 71 #define CLKID_SYS_LCD 72 #define CLKID_SYS_ADCANA 73 #define MAX_CLKS 74 #endif rch' size='10' name='q' value=''/>
path: root/include/dt-bindings/reset/qcom,gcc-mdm9615.h
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2016-11-10 17:21:29 +0800
committerMark Brown <broonie@kernel.org>2016-11-11 15:38:08 +0000
commit09f2ba0b0b7c44ecea49cf69a708203b76ba5535 (patch)
tree042df33ac99f77d8b86ac427431e267c33561c35 /include/dt-bindings/reset/qcom,gcc-mdm9615.h
parent1001354ca34179f3db924eb66672442a173147dc (diff)
regulator: gpio: properly check return value of of_get_named_gpio
The function of_get_named_gpio() could return -ENOENT, -EPROBE_DEFER -EINVAL and so on. Currently, for the optional property "enable-gpio", we only check -EPROBE_DEFER, this is not enough since there may be misconfigured "enable-gpio" in the DTB, of_get_named_gpio() will return -EINVAL in this case, we should return immediately here. And for the optional property "gpios", we didn't check the return value, the driver will continue to the point where gpio_request_array() is called, it doesn't make sense to continue if we got -EPROBE_DEFER or -EINVAL here. This patch tries to address these two issues by properly checking the return value of of_get_named_gpio. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/dt-bindings/reset/qcom,gcc-mdm9615.h')