Commit 04dbd450 authored by Alessandro Rubini's avatar Alessandro Rubini

nic/module.c: add a release method (that does nothing)

parent 5e9e873d
......@@ -48,6 +48,12 @@ static struct resource wrn_resources[] = {
};
#undef __RES
static void wrn_release(struct device *dev)
{
/* nothing to do, but mandatory function */
pr_debug("%s\n", __func__);
}
static struct platform_device wrn_device = {
.name = DRV_NAME,
.id = 0,
......@@ -55,6 +61,7 @@ static struct platform_device wrn_device = {
.num_resources = ARRAY_SIZE(wrn_resources),
.dev = {
.platform_data = &wrn_dev,
.release = &wrn_release,
/* dma_mask not used, as we make no DMA */
},
};
......
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