|
@@ -453,7 +453,7 @@ int opp_add(struct device *dev, unsigned long freq, unsigned long u_volt)
|
|
|
static int opp_set_availability(struct device *dev, unsigned long freq,
|
|
|
bool availability_req)
|
|
|
{
|
|
|
- struct device_opp *tmp_dev_opp, *dev_opp = NULL;
|
|
|
+ struct device_opp *tmp_dev_opp, *dev_opp = ERR_PTR(-ENODEV);
|
|
|
struct opp *new_opp, *tmp_opp, *opp = ERR_PTR(-ENODEV);
|
|
|
int r = 0;
|
|
|
|