Fix compilation after porting older battery/charger code

https://github.com/maniacx/android_kernel_htcleo-3.0/commit/9c6d78396ee6d8d7de657d37dd65a1460e03eef2