In case of error, the function ioremap() returns NULL pointer
not ERR_PTR(). The IS_ERR() test in the return value check
should be replaced with NULL test.
Also add check for return value of platform_get_resource().
Fixes:
|
||
|---|---|---|
| .. | ||
| emac-mac.c | ||
| emac-mac.h | ||
| emac-phy.c | ||
| emac-phy.h | ||
| emac-sgmii.c | ||
| emac-sgmii.h | ||
| emac.c | ||
| emac.h | ||
| Makefile | ||