drivers: bbram: mec: fixed compilation error
Fixed compilation error when building bbram driver for MEC15xx Signed-off-by: Jay Vasanth <jay.vasanth@microchip.com>
This commit is contained in:
parent
18e1992cc8
commit
8c193743ac
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ struct bbram_xec_config {
|
|||
static int bbram_xec_check_invalid(const struct device *dev)
|
||||
{
|
||||
struct vbatr_regs *const regs = (struct vbatr_regs *)(DT_REG_ADDR_BY_NAME(
|
||||
DT_INST(0, microchip_xec_pcr), vbatr));
|
||||
DT_NODELABEL(pcr), vbatr));
|
||||
|
||||
if (regs->PFRS & BIT(MCHP_VBATR_PFRS_VBAT_RST_POS)) {
|
||||
regs->PFRS |= BIT(MCHP_VBATR_PFRS_VBAT_RST_POS);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue