Skip to content

Commit 62847d1

Browse files
author
Fox Snowpatch
committed
1 parent 4f37907 commit 62847d1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

  • drivers/soc/fsl/qe

drivers/soc/fsl/qe/qe.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,12 @@ static phys_addr_t get_qe_base(void)
8686

8787
void qe_reset(void)
8888
{
89-
if (qe_immr == NULL)
89+
if (qe_immr == NULL) {
9090
qe_immr = ioremap(get_qe_base(), QE_IMMAP_SIZE);
91+
if (qe_immr == NULL) {
92+
panic("QE:ioremap failed!");
93+
}
94+
}
9195

9296
qe_snums_init();
9397

0 commit comments

Comments
 (0)