> >> /* Built-in 10/100 Ethernet MAC interfaces */ > >>+static struct resource fsg_eth_npeb_resources[] = { > >>+ { > >>+ .start = IXP4XX_EthB_BASE_PHYS, > >>+ .end = IXP4XX_EthB_BASE_PHYS + 0x0fff, > > > >Hi Linus > > > >It is a long time since i did resources. But i was always told to use > >the SZ_ macros, so SZ_4K. I also think 0xfff is wrong, it should be > >0x1000. > > No, 0x0fff is correct there, 0x1000 is not...
Yes, the DEFINE_RES_* macros make this clear. The code should be changed to use them, and then SZ_ macros can be used, since DEFINE_RES_NAMED() does a - 1. Andrew