crypto: exynos - fix Wvoid-pointer-to-enum-cast warning
'type' is an enum, thus cast of pointer on 64-bit compile test with W=1 causes: exynos-rng.c:280:14: error: cast to smaller integer type 'enum exynos_prng_type' from 'const void *' [-Werror,-Wvoid-pointer-to-enum-cast] Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
d94e0f25de
commit
d1c02e876f
@ -277,7 +277,7 @@ static int exynos_rng_probe(struct platform_device *pdev)
|
||||
if (!rng)
|
||||
return -ENOMEM;
|
||||
|
||||
rng->type = (enum exynos_prng_type)of_device_get_match_data(&pdev->dev);
|
||||
rng->type = (uintptr_t)of_device_get_match_data(&pdev->dev);
|
||||
|
||||
mutex_init(&rng->lock);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user