On Thursday 09 August 2012 02:48 AM, Stephen Warren wrote:
From: Gyungoh Yoo<jack....@maxim-ic.com>

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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to