Loading drivers/mmc/wbsd.c +3 −6 Original line number Original line Diff line number Diff line Loading @@ -1456,13 +1456,11 @@ static int __devinit wbsd_scan(struct wbsd_host* host) * Iterate through all ports, all codes to * Iterate through all ports, all codes to * find hardware that is in our known list. * find hardware that is in our known list. */ */ for (i = 0;i < sizeof(config_ports)/sizeof(int);i++) for (i = 0; i < ARRAY_SIZE(config_ports); i++) { { if (!request_region(config_ports[i], 2, DRIVER_NAME)) if (!request_region(config_ports[i], 2, DRIVER_NAME)) continue; continue; for (j = 0;j < sizeof(unlock_codes)/sizeof(int);j++) for (j = 0; j < ARRAY_SIZE(unlock_codes); j++) { { id = 0xFFFF; id = 0xFFFF; host->config = config_ports[i]; host->config = config_ports[i]; Loading @@ -1478,8 +1476,7 @@ static int __devinit wbsd_scan(struct wbsd_host* host) wbsd_lock_config(host); wbsd_lock_config(host); for (k = 0;k < sizeof(valid_ids)/sizeof(int);k++) for (k = 0; k < ARRAY_SIZE(valid_ids); k++) { { if (id == valid_ids[k]) if (id == valid_ids[k]) { { host->chip_id = id; host->chip_id = id; Loading Loading
drivers/mmc/wbsd.c +3 −6 Original line number Original line Diff line number Diff line Loading @@ -1456,13 +1456,11 @@ static int __devinit wbsd_scan(struct wbsd_host* host) * Iterate through all ports, all codes to * Iterate through all ports, all codes to * find hardware that is in our known list. * find hardware that is in our known list. */ */ for (i = 0;i < sizeof(config_ports)/sizeof(int);i++) for (i = 0; i < ARRAY_SIZE(config_ports); i++) { { if (!request_region(config_ports[i], 2, DRIVER_NAME)) if (!request_region(config_ports[i], 2, DRIVER_NAME)) continue; continue; for (j = 0;j < sizeof(unlock_codes)/sizeof(int);j++) for (j = 0; j < ARRAY_SIZE(unlock_codes); j++) { { id = 0xFFFF; id = 0xFFFF; host->config = config_ports[i]; host->config = config_ports[i]; Loading @@ -1478,8 +1476,7 @@ static int __devinit wbsd_scan(struct wbsd_host* host) wbsd_lock_config(host); wbsd_lock_config(host); for (k = 0;k < sizeof(valid_ids)/sizeof(int);k++) for (k = 0; k < ARRAY_SIZE(valid_ids); k++) { { if (id == valid_ids[k]) if (id == valid_ids[k]) { { host->chip_id = id; host->chip_id = id; Loading