]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/fpga/of-fpga-region.c
Merge tag 'for-linus-20190209' of git://git.kernel.dk/linux-block
[linux.git] / drivers / fpga / of-fpga-region.c
index 122286fd255af497ef4b268d49bdfebb485ab495..75f64abf9c817c6dd88e058a9a3b51b12c8eaa09 100644 (file)
@@ -421,7 +421,7 @@ static int of_fpga_region_probe(struct platform_device *pdev)
                goto eprobe_mgr_put;
 
        of_platform_populate(np, fpga_region_of_match, NULL, &region->dev);
-       dev_set_drvdata(dev, region);
+       platform_set_drvdata(pdev, region);
 
        dev_info(dev, "FPGA Region probed\n");