Re: [PATCH V2 3/3] regulator: add MAX8907 driver

From: Laxman Dewangan
Date: Thu Aug 09 2012 - 08:35:05 EST


On Thursday 09 August 2012 02:48 AM, Stephen Warren wrote:
From: Gyungoh Yoo<jack.yoo@xxxxxxxxxxxx>

The MAX8907 is an I2C-based power-management IC containing voltage
regulators, a reset controller, a real-time clock, and a touch-screen

+ for (i = 0; i< MAX8907_NUM_REGULATORS; i++) {
+ config.dev = pdev->dev.parent;
+ if (pdata)
+ idata = pdata->init_data[i];
+ else
+ idata = max8907_matches[i].init_data;

Can we check whether idata is valid or not?
There may be possibility that some of regulator node is not populated and that case, the idata will be NULL and hence regulator registration can be bypass for that regulator.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/