|
@@ -497,12 +497,12 @@ const struct dev_pm_ops arizona_pm_ops = {
|
|
|
EXPORT_SYMBOL_GPL(arizona_pm_ops);
|
|
EXPORT_SYMBOL_GPL(arizona_pm_ops);
|
|
|
|
|
|
|
|
#ifdef CONFIG_OF
|
|
#ifdef CONFIG_OF
|
|
|
-int arizona_of_get_type(struct device *dev)
|
|
|
|
|
|
|
+unsigned long arizona_of_get_type(struct device *dev)
|
|
|
{
|
|
{
|
|
|
const struct of_device_id *id = of_match_device(arizona_of_match, dev);
|
|
const struct of_device_id *id = of_match_device(arizona_of_match, dev);
|
|
|
|
|
|
|
|
if (id)
|
|
if (id)
|
|
|
- return (int)id->data;
|
|
|
|
|
|
|
+ return (unsigned long)id->data;
|
|
|
else
|
|
else
|
|
|
return 0;
|
|
return 0;
|
|
|
}
|
|
}
|