usb: musb: dsps: fix possible compile warning
if CONFIG_OF is disabled, np will be unused and that will give us a compile warning. This patch just avoids it. Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
parent
6a3b003620
commit
cc5060366b
1 changed files with 1 additions and 2 deletions
|
@ -597,14 +597,13 @@ err0:
|
||||||
|
|
||||||
static int dsps_probe(struct platform_device *pdev)
|
static int dsps_probe(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct device_node *np = pdev->dev.of_node;
|
|
||||||
const struct of_device_id *match;
|
const struct of_device_id *match;
|
||||||
const struct dsps_musb_wrapper *wrp;
|
const struct dsps_musb_wrapper *wrp;
|
||||||
struct dsps_glue *glue;
|
struct dsps_glue *glue;
|
||||||
struct resource *iomem;
|
struct resource *iomem;
|
||||||
int ret, i;
|
int ret, i;
|
||||||
|
|
||||||
match = of_match_node(musb_dsps_of_match, np);
|
match = of_match_node(musb_dsps_of_match, pdev->dev.of_node);
|
||||||
if (!match) {
|
if (!match) {
|
||||||
dev_err(&pdev->dev, "fail to get matching of_match struct\n");
|
dev_err(&pdev->dev, "fail to get matching of_match struct\n");
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
|
Loading…
Add table
Reference in a new issue