[PATCH] mmc: fix handling NULL returned from regulator_get()

2011-05-18 Thread Antonio Ospite
When regulator_get() is stubbed down it returns NULL, handle this case when deciding whether the driver can use the regulator or not. Remember: IS_ERR(NULL) is false, see also this discussion for more insight: http://comments.gmane.org/gmane.linux.kernel.mmc/7934 Now that regulator_get() is

Re: [PATCH] mmc: fix handling NULL returned from regulator_get()

2011-05-18 Thread Chris Ball
Hi Antonio, thanks for doing this, On Wed, May 18 2011, Antonio Ospite wrote: When regulator_get() is stubbed down it returns NULL, handle this case when deciding whether the driver can use the regulator or not. Remember: IS_ERR(NULL) is false, see also this discussion for more insight: