mirror of https://gitee.com/openkylin/linux.git
Input: ambakmi - annotate probe() and remove() methods
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
a0ee2037e1
commit
266429df37
|
@ -107,7 +107,7 @@ static void amba_kmi_close(struct serio *io)
|
|||
clk_disable(kmi->clk);
|
||||
}
|
||||
|
||||
static int amba_kmi_probe(struct amba_device *dev, struct amba_id *id)
|
||||
static int __devinit amba_kmi_probe(struct amba_device *dev, struct amba_id *id)
|
||||
{
|
||||
struct amba_kmi_port *kmi;
|
||||
struct serio *io;
|
||||
|
@ -134,7 +134,7 @@ static int amba_kmi_probe(struct amba_device *dev, struct amba_id *id)
|
|||
io->port_data = kmi;
|
||||
io->dev.parent = &dev->dev;
|
||||
|
||||
kmi->io = io;
|
||||
kmi->io = io;
|
||||
kmi->base = ioremap(dev->res.start, resource_size(&dev->res));
|
||||
if (!kmi->base) {
|
||||
ret = -ENOMEM;
|
||||
|
@ -162,7 +162,7 @@ static int amba_kmi_probe(struct amba_device *dev, struct amba_id *id)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int amba_kmi_remove(struct amba_device *dev)
|
||||
static int __devexit amba_kmi_remove(struct amba_device *dev)
|
||||
{
|
||||
struct amba_kmi_port *kmi = amba_get_drvdata(dev);
|
||||
|
||||
|
@ -201,7 +201,7 @@ static struct amba_driver ambakmi_driver = {
|
|||
},
|
||||
.id_table = amba_kmi_idtable,
|
||||
.probe = amba_kmi_probe,
|
||||
.remove = amba_kmi_remove,
|
||||
.remove = __devexit_p(amba_kmi_remove),
|
||||
.resume = amba_kmi_resume,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue