Skip to content

Commit

Permalink
Merge master.kernel.org:/home/rmk/linux-2.6-ucb
Browse files Browse the repository at this point in the history
  • Loading branch information
Linus Torvalds committed Oct 10, 2005
2 parents ec384d2 + 585f545 commit f96c3bb
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions drivers/mfd/ucb1x00-core.c
Expand Up @@ -457,6 +457,17 @@ static int ucb1x00_detect_irq(struct ucb1x00 *ucb)
return probe_irq_off(mask);
}

static void ucb1x00_release(struct class_device *dev)
{
struct ucb1x00 *ucb = classdev_to_ucb1x00(dev);
kfree(ucb);
}

static struct class ucb1x00_class = {
.name = "ucb1x00",
.release = ucb1x00_release,
};

static int ucb1x00_probe(struct mcp *mcp)
{
struct ucb1x00 *ucb;
Expand Down Expand Up @@ -546,17 +557,6 @@ static void ucb1x00_remove(struct mcp *mcp)
class_device_unregister(&ucb->cdev);
}

static void ucb1x00_release(struct class_device *dev)
{
struct ucb1x00 *ucb = classdev_to_ucb1x00(dev);
kfree(ucb);
}

static struct class ucb1x00_class = {
.name = "ucb1x00",
.release = ucb1x00_release,
};

int ucb1x00_register_driver(struct ucb1x00_driver *drv)
{
struct ucb1x00 *ucb;
Expand Down

0 comments on commit f96c3bb

Please sign in to comment.