diff --git a/drivers/bus/ti-sysc.c b/drivers/bus/ti-sysc.c index 9cd8cd8c436ed8fe40229b16e7875af64856412f..1cc29629d23807b83bfee9f7d23fec1d5757941d 100644 --- a/drivers/bus/ti-sysc.c +++ b/drivers/bus/ti-sysc.c @@ -128,7 +128,7 @@ static int sysc_get_one_clock(struct sysc *ddata, const char *name) if (index < 0) { for (i = SYSC_OPTFCK0; i < SYSC_MAX_CLOCKS; i++) { - if (!clock_names[i]) { + if (!ddata->clocks[i]) { index = i; break; }