Thread (73 messages) 73 messages, 6 authors, 2012-05-14
STALE5158d

[PATCH 14/15] drivers/regulators: Enable the ab8500 for Device Tree

From: Mark Brown <hidden>
Date: 2012-05-14 16:39:15
Also in: linux-i2c

On Mon, May 14, 2012 at 04:57:39PM +0100, Lee Jones wrote:
quoted
quoted
 	pdata = dev_get_platdata(ab8500->dev);
-	if (!pdata) {
-		dev_err(&pdev->dev, "null pdata\n");
+	if (!pdata&&  !np) {
+		dev_err(&pdev->dev, "null pdata and no device tree found\n");
 		return -EINVAL;
 	}
quoted
Neither should be mandatory.
Unfortunately, this has to reside, as without it I'd have to
re-write the driver. Something with is completely out of scope of
what I'm trying to achieve right now. It's something I'd be happy to
do in the future, but not in this patch-set.
Why do you need to rewrite the driver?  That doesn't sound terribly
plausible...   The normal approach to this stuff is to allocate a
platform data struct unconditionally, why is this impossible in your
case?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20120514/1788ebec/attachment.sig>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help