usb: ulpi: Use of_request_module()
There is a new helper supposed to replace of_device_request_module(), called of_request_module(). They are both strictly equivalent, besides the fact the latter receives a "struct device_node" directly. Use it. Cc: Heikki Krogerus <heikki.krogerus@linux.intel.com> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Rob Herring <robh@kernel.org> Acked-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org> Link: https://lore.kernel.org/r/20230404172148.82422-12-srinivas.kandagatla@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
e6506f06d5
Коммит
1969753770
|
@ -229,7 +229,7 @@ static int ulpi_read_id(struct ulpi *ulpi)
|
||||||
request_module("ulpi:v%04xp%04x", ulpi->id.vendor, ulpi->id.product);
|
request_module("ulpi:v%04xp%04x", ulpi->id.vendor, ulpi->id.product);
|
||||||
return 0;
|
return 0;
|
||||||
err:
|
err:
|
||||||
of_device_request_module(&ulpi->dev);
|
of_request_module(ulpi->dev.of_node);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче