Commit 5b81d689 authored by Robert Reif's avatar Robert Reif Committed by David S. Miller

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: default avatarDavid S. Miller <davem@davemloft.net>
parent afa26be8
......@@ -126,7 +126,7 @@ struct tcx_par {
};
/* Reset control plane so that WID is 8-bit plane. */
static void __tcx_set_control_plane (struct tcx_par *par)
static void __tcx_set_control_plane(struct tcx_par *par)
{
u32 __iomem *p, *pend;
......@@ -144,7 +144,7 @@ static void __tcx_set_control_plane (struct tcx_par *par)
}
}
static void tcx_reset (struct fb_info *info)
static void tcx_reset(struct fb_info *info)
{
struct tcx_par *par = (struct tcx_par *) info->par;
unsigned long flags;
......@@ -365,7 +365,8 @@ static void tcx_unmap_regs(struct of_device *op, struct fb_info *info,
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 fb_info *info;
......@@ -488,13 +489,6 @@ static int __devinit tcx_init_one(struct of_device *op)
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)
{
struct fb_info *info = dev_get_drvdata(&op->dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment