Commit aa587708 authored by Benoit Rat's avatar Benoit Rat Committed by Alessandro Rubini

kernel/wr-nic: fix bad SDB address while loading with gateware arg

When the user passes "gateware=", the code uses a wrong SDB entry
point: "Can't find SDB at address 0x630000" (with one too many zeroes.

Replace typoed constant values with WRN_SDB_ADDR.
parent e8fc78b2
......@@ -88,9 +88,9 @@ int wrn_fmc_probe(struct fmc_device *fmc)
* global name
*/
if (wrn_drv.gw_n)
ret = fmc_reprogram(fmc, &wrn_drv, "", 0x630000 /* SDB */);
ret = fmc_reprogram(fmc, &wrn_drv, "", WRN_SDB_ADDR);
else
ret = fmc_reprogram(fmc, &wrn_drv, wrn_filename, 0x63000);
ret = fmc_reprogram(fmc, &wrn_drv, wrn_filename, WRN_SDB_ADDR);
if (ret <0) {
if (ret == -ESRCH) {
dev_info(fmc->hwdev, "%s: no gateware at index %i\n",
......
Markdown is supported
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