Skip to content
Snippets Groups Projects
Commit 35480a19 authored by Alessandro Rubini's avatar Alessandro Rubini
Browse files

nic-core: trivial: use macro instead of hex number


Signed-off-by: default avatarAlessandro Rubini <rubini@gnudd.com>
parent 121a2c1f
No related merge requests found
......@@ -103,8 +103,8 @@ int wrn_fmc_probe(struct fmc_device *fmc)
return ret;
}
/* Verify that we have SDB at offset 0x63000 */
if (fmc_readl(fmc, 0x63000) != 0x5344422d) {
/* Verify that we have SDB at offset WRN_SDB_ADDR (0x63000) */
if (fmc_readl(fmc, WRN_SDB_ADDR) != 0x5344422d) {
dev_err(dev, "Can't find SDB magic\n");
ret = -ENODEV;
goto out;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment