On Mon, May 30, 2011 at 12:57:57PM +0200, Antonio Ospite wrote: > It is cleaner and more uniform indeed, but it does not solve the problem > I am seeing, the issue is still there when pdata is NULL, we are at the > same point as before (the current code checks for (pdata && > pdata->field)), and we cannot pass pdata directly as a function argument > (can we?) as it is driver specific as well. You can do a nasty type punning trick if the generic pdata is the first member of the platform data, otherwise the easiest thing is usually to provide a defualt pdata if the pdata is NULL. I'd expect that in a lot of cases the standard platform data would be the only platform data so for many drivers they wouldn't need to worry about extra data but perhaps MMC isn't like that, I've never really looked at the code. -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html