Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67559
b: refs/heads/master
c: 47473e3
h: refs/heads/master
i:
  67557: 2dc9b9d
  67555: 930a4ac
  67551: d69355e
v: v3
  • Loading branch information
Grant Likely committed Oct 10, 2007
1 parent 2c0f967 commit c4f6ffe
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 264776224d3bb0cd80bc0ec11a769e05a58f8c6b
refs/heads/master: 47473e31585032e5c048eeec50e0f9165890230a
32 changes: 16 additions & 16 deletions trunk/drivers/video/xilinxfb.c
Original file line number Diff line number Diff line change
Expand Up @@ -339,49 +339,49 @@ static int xilinxfb_release(struct device *dev)
*/

static int
xilinxfb_drv_probe(struct device *dev)
xilinxfb_platform_probe(struct platform_device *pdev)
{
struct platform_device *pdev;
struct xilinxfb_platform_data *pdata;
struct resource *res;
int width_mm;
int height_mm;
int rotate;

pdev = to_platform_device(dev);
pdata = pdev->dev.platform_data;
if (!pdata) {
dev_err(dev, "Missing pdata structure\n");
dev_err(&pdev->dev, "Missing pdata structure\n");
return -ENODEV;
}

/* Find the registers address */
res = platform_get_resource(pdev, IORESOURCE_IO, 0);
if (!res) {
dev_err(dev, "Couldn't get registers resource\n");
dev_err(&pdev->dev, "Couldn't get registers resource\n");
return -ENODEV;
}

height_mm = pdata->screen_height_mm;
width_mm = pdata->screen_width_mm;
rotate = pdata->rotate_screen ? 1 : 0;

return xilinxfb_assign(dev, res->start, width_mm, height_mm, rotate);
return xilinxfb_assign(&pdev->dev, res->start, width_mm, height_mm,
rotate);
}

static int
xilinxfb_drv_remove(struct device *dev)
xilinxfb_platform_remove(struct platform_device *pdev)
{
return xilinxfb_release(dev);
return xilinxfb_release(&pdev->dev);
}


static struct device_driver xilinxfb_driver = {
.name = DRIVER_NAME,
.bus = &platform_bus_type,

.probe = xilinxfb_drv_probe,
.remove = xilinxfb_drv_remove
static struct platform_driver xilinxfb_platform_driver = {
.probe = xilinxfb_platform_probe,
.remove = xilinxfb_platform_remove,
.driver = {
.owner = THIS_MODULE,
.name = DRIVER_NAME,
},
};

static int __init
Expand All @@ -391,13 +391,13 @@ xilinxfb_init(void)
* No kernel boot options used,
* so we just need to register the driver
*/
return driver_register(&xilinxfb_driver);
return platform_driver_register(&xilinxfb_platform_driver);
}

static void __exit
xilinxfb_cleanup(void)
{
driver_unregister(&xilinxfb_driver);
platform_driver_unregister(&xilinxfb_platform_driver);
}

module_init(xilinxfb_init);
Expand Down

0 comments on commit c4f6ffe

Please sign in to comment.