sparc: tcx.c remove unnecessary function
From: Robert Reif <reif@earthlink.net> Replaced tcx_init_one with tcx_probe. Fixed some checkpatch problems. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
afa26be86b
commit
5b81d689e5
@ -365,7 +365,8 @@ static void tcx_unmap_regs(struct of_device *op, struct fb_info *info,
|
|||||||
info->screen_base, par->fbsize);
|
info->screen_base, par->fbsize);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __devinit tcx_init_one(struct of_device *op)
|
static int __devinit tcx_probe(struct of_device *op,
|
||||||
|
const struct of_device_id *match)
|
||||||
{
|
{
|
||||||
struct device_node *dp = op->node;
|
struct device_node *dp = op->node;
|
||||||
struct fb_info *info;
|
struct fb_info *info;
|
||||||
@ -488,13 +489,6 @@ out_err:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int __devinit tcx_probe(struct of_device *dev, const struct of_device_id *match)
|
|
||||||
{
|
|
||||||
struct of_device *op = to_of_device(&dev->dev);
|
|
||||||
|
|
||||||
return tcx_init_one(op);
|
|
||||||
}
|
|
||||||
|
|
||||||
static int __devexit tcx_remove(struct of_device *op)
|
static int __devexit tcx_remove(struct of_device *op)
|
||||||
{
|
{
|
||||||
struct fb_info *info = dev_get_drvdata(&op->dev);
|
struct fb_info *info = dev_get_drvdata(&op->dev);
|
||||||
|
Loading…
Reference in New Issue
Block a user