If pdata is NULL then the condition is false and the CPU should jump to the false branch and returning 0 or NULL. Did you really get error here?
Oh, I see! that patch becomes void! Thanks for your explanatory note. -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html