IS_ERR is mistakenly used to get the error code from a pointer return
value. PTR_ERR is the currect API to use to accomplish this.
Use PTR_ERR where IS_ERR is inappropriately used.
Change-Id: I1d3bcf4e0b0c7d42ec33aed423d92d0f1f5488de
Signed-off-by: Jeffrey Hugo <jhugo@codeaurora.org>