mtk: Initialize mask correctly.
Initialization of mask is missing. Fixes a compile issue. Reviewed by: imp@ Pull Request: https://github.com/freebsd/freebsd-src/pull/459
This commit is contained in:
parent
b0e54e61b3
commit
768787bee3
@ -123,6 +123,8 @@ mtk_clock_get_info(device_t dev, int index, struct fdt_clock_info *info)
|
||||
if (index < 0 || index > 31 || info == NULL)
|
||||
return (EINVAL);
|
||||
|
||||
mask = (1u << index);
|
||||
|
||||
if (mtk_sysctl_get(SYSCTL_CLKCFG1) & mask)
|
||||
info->flags = FDT_CIFLAG_RUNNING;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user