Home
last modified time | relevance | path

Searched refs:PTR_ERR_OR_ZERO (Results 1 – 25 of 563) sorted by relevance

12345678910>>...23

/OK3568_Linux_fs/kernel/scripts/coccinelle/api/
H A Dptr_ret.cocci3 /// Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
11 // Keywords: ERR_PTR, PTR_ERR, PTR_ERR_OR_ZERO
25 + return PTR_ERR_OR_ZERO(ptr);
32 + return PTR_ERR_OR_ZERO(ptr);
39 + PTR_ERR_OR_ZERO(ptr)
66 coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
73 coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
79 coccilib.org.print_todo(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
85 coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
91 coccilib.report.print_report(p[0], "WARNING: PTR_ERR_OR_ZERO can be used")
[all …]
/OK3568_Linux_fs/kernel/drivers/power/supply/
H A Dlego_ev3_battery.c168 err = PTR_ERR_OR_ZERO(batt->iio_v); in lego_ev3_battery_probe()
174 err = PTR_ERR_OR_ZERO(batt->iio_i); in lego_ev3_battery_probe()
180 err = PTR_ERR_OR_ZERO(batt->rechargeable_gpio); in lego_ev3_battery_probe()
206 err = PTR_ERR_OR_ZERO(batt->psy); in lego_ev3_battery_probe()
H A Ducs1002_power.c554 ret = PTR_ERR_OR_ZERO(info->regmap); in ucs1002_probe()
611 ret = PTR_ERR_OR_ZERO(info->charger); in ucs1002_probe()
639 ret = PTR_ERR_OR_ZERO(info->rdev); in ucs1002_probe()
/OK3568_Linux_fs/kernel/drivers/cpufreq/
H A Dtegra20-cpufreq.c65 err = PTR_ERR_OR_ZERO(opp_table); in tegra20_cpufreq_probe()
72 err = PTR_ERR_OR_ZERO(cpufreq_dt); in tegra20_cpufreq_probe()
H A Dtango-cpufreq.c36 return PTR_ERR_OR_ZERO(res); in tango_cpufreq_init()
/OK3568_Linux_fs/kernel/drivers/input/misc/
H A Dpwm-vibra.c137 err = PTR_ERR_OR_ZERO(vibrator->vcc); in pwm_vibrator_probe()
146 err = PTR_ERR_OR_ZERO(vibrator->pwm); in pwm_vibrator_probe()
167 err = PTR_ERR_OR_ZERO(vibrator->pwm_dir); in pwm_vibrator_probe()
H A Dgpio-vibra.c116 err = PTR_ERR_OR_ZERO(vibrator->vcc); in gpio_vibrator_probe()
125 err = PTR_ERR_OR_ZERO(vibrator->gpio); in gpio_vibrator_probe()
/OK3568_Linux_fs/kernel/drivers/hwmon/
H A Draspberrypi-hwmon.c125 if (!PTR_ERR_OR_ZERO(data->hwmon_dev)) in rpi_hwmon_probe()
128 return PTR_ERR_OR_ZERO(data->hwmon_dev); in rpi_hwmon_probe()
/OK3568_Linux_fs/kernel/drivers/leds/
H A Dleds-sgm3140.c197 ret = PTR_ERR_OR_ZERO(priv->flash_gpio); in sgm3140_probe()
203 ret = PTR_ERR_OR_ZERO(priv->enable_gpio); in sgm3140_probe()
209 ret = PTR_ERR_OR_ZERO(priv->vin_regulator); in sgm3140_probe()
/OK3568_Linux_fs/kernel/drivers/thermal/
H A Dqoriq_thermal.c152 ret = PTR_ERR_OR_ZERO(tzd); in qoriq_tmu_register_tmu_zone()
287 ret = PTR_ERR_OR_ZERO(base); in qoriq_tmu_probe()
294 ret = PTR_ERR_OR_ZERO(data->regmap); in qoriq_tmu_probe()
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A Dpcspeaker.c12 return PTR_ERR_OR_ZERO(pd); in add_pcspkr()
H A Dsysfb.c66 return PTR_ERR_OR_ZERO(pd); in sysfb_init()
/OK3568_Linux_fs/kernel/drivers/phy/intel/
H A Dphy-intel-keembay-emmc.c200 return PTR_ERR_OR_ZERO(priv->emmcclk); in keembay_emmc_phy_init()
288 return PTR_ERR_OR_ZERO(phy_provider); in keembay_emmc_phy_probe()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/bochs/
H A Dbochs_mm.c15 return PTR_ERR_OR_ZERO(vmm); in bochs_mm_init()
/OK3568_Linux_fs/kernel/drivers/dax/pmem/
H A Dpmem.c12 return PTR_ERR_OR_ZERO(__dax_pmem_probe(dev, DEV_DAX_BUS)); in dax_pmem_probe()
/OK3568_Linux_fs/kernel/net/smc/
H A Dsmc_ib.c323 rc = PTR_ERR_OR_ZERO(lnk->roce_pd); in smc_ib_create_protection_domain()
381 rc = PTR_ERR_OR_ZERO(lnk->roce_qp); in smc_ib_create_queue_pair()
521 rc = PTR_ERR_OR_ZERO(smcibdev->roce_cq_send); in smc_ib_setup_per_ibdev()
529 rc = PTR_ERR_OR_ZERO(smcibdev->roce_cq_recv); in smc_ib_setup_per_ibdev()
/OK3568_Linux_fs/kernel/drivers/platform/x86/
H A Dintel_cht_int33fe_microb.c49 return PTR_ERR_OR_ZERO(data->battery_fg); in cht_int33fe_microb_probe()
/OK3568_Linux_fs/kernel/include/linux/
H A Derr.h57 static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) in PTR_ERR_OR_ZERO() function
/OK3568_Linux_fs/kernel/tools/include/linux/
H A Derr.h55 static inline int __must_check PTR_ERR_OR_ZERO(__force const void *ptr) in PTR_ERR_OR_ZERO() function
/OK3568_Linux_fs/kernel/arch/powerpc/platforms/ps3/
H A Dtime.c57 return PTR_ERR_OR_ZERO(pdev); in ps3_rtc_init()
/OK3568_Linux_fs/kernel/drivers/tty/hvc/
H A Dhvc_riscv_sbi.c49 return PTR_ERR_OR_ZERO(hvc_alloc(0, 0, &hvc_sbi_ops, 16)); in hvc_sbi_init()
/OK3568_Linux_fs/kernel/lib/
H A Dlibcrc32c.c60 return PTR_ERR_OR_ZERO(tfm); in libcrc32c_mod_init()
/OK3568_Linux_fs/kernel/arch/powerpc/sysdev/
H A Drtc_cmos_setup.c65 return PTR_ERR_OR_ZERO(pd); in add_rtc()
/OK3568_Linux_fs/kernel/drivers/input/touchscreen/
H A Dcyttsp4_i2c.c43 return PTR_ERR_OR_ZERO(ts); in cyttsp4_i2c_probe()
/OK3568_Linux_fs/kernel/arch/arm/mach-omap2/
H A Dfb.c74 return PTR_ERR_OR_ZERO(pdev); in omap_init_vrfb()

12345678910>>...23