PD#166793
Problem:
conditional statement not is valid.
Solution:
change type u32 to type int.
Verify:
module owner confirmed.
Change-Id: I9fdfa444b29104c7afc9b7a380748ebe82ed390b
Signed-off-by: Jianxiong Pan <jianxiong.pan@amlogic.com>
#define SMC_ENABLE_5V3V_PIN_NAME "smc:5V3V"
int enable_5v3v_level;
int (*reset)(void*, int);
- u32 irq_num;
+ int irq_num;
int reset_level;
u32 pin_clk_pinmux_reg;
if (IS_ERR(smc->pinctrl))
return -1;
- of_property_read_string(smc->pdev->dev.of_node,
+ ret = of_property_read_string(smc->pdev->dev.of_node,
"smc_need_enable_pin", &dts_str);
+ if (ret < 0) {
+ pr_error("failed to get smartcard node.\n");
+ return -EINVAL;
+ }
if (strcmp(dts_str, "yes") == 0)
smc->use_enable_pin = 1;
else