diff --git a/drivers/leds/leds-qpnp-flash-v2.c b/drivers/leds/leds-qpnp-flash-v2.c index 2123c8dccb56..cc4915f03b52 100644 --- a/drivers/leds/leds-qpnp-flash-v2.c +++ b/drivers/leds/leds-qpnp-flash-v2.c @@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0-only /* * Copyright (c) 2016-2021, The Linux Foundation. All rights reserved. + * Copyright (c) 2022 Qualcomm Innovation Center, Inc. All rights reserved. */ #define pr_fmt(fmt) "flashv2: %s: " fmt, __func__ @@ -2970,7 +2971,7 @@ static int qpnp_flash_led_probe(struct platform_device *pdev) return -EINVAL; } - led->pmic_type = (u8)of_device_get_match_data(&pdev->dev); + led->pmic_type = (uintptr_t)of_device_get_match_data(&pdev->dev); if (led->pmic_type == PM6150L) led->wa_flags |= PM6150L_IRES_WA;