Changeset View
Changeset View
Standalone View
Standalone View
sys/arm/at91/at91_pinctrl.c
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Lines | |||||
int j; | int j; | ||||
sc = device_get_softc(bus); | sc = device_get_softc(bus); | ||||
/* | /* | ||||
* Request for the default allocation with a given rid: use resource | * Request for the default allocation with a given rid: use resource | ||||
* list stored in the local device info. | * list stored in the local device info. | ||||
*/ | */ | ||||
if ((start == 0UL) && (end == ~0UL)) { | if ((start == 0) && (end == ~0)) { | ||||
if ((di = device_get_ivars(child)) == NULL) | if ((di = device_get_ivars(child)) == NULL) | ||||
return (NULL); | return (NULL); | ||||
if (type == SYS_RES_IOPORT) | if (type == SYS_RES_IOPORT) | ||||
type = SYS_RES_MEMORY; | type = SYS_RES_MEMORY; | ||||
rle = resource_list_find(&di->rl, type, *rid); | rle = resource_list_find(&di->rl, type, *rid); | ||||
if (rle == NULL) { | if (rle == NULL) { | ||||
▲ Show 20 Lines • Show All 42 Lines • Show Last 20 Lines |