Skip to content

Commit

Permalink
[ARM] 3775/1: S3C24XX: do not add same sysdev_driver to two classes
Browse files Browse the repository at this point in the history
Patch from Ben Dooks

The s3c244x-irq.c code makes the mistake of adding
the same drive to two different sys-classes. This
causes the class lists to become corrupted and the
suspend code to OOPS.

Signed-off-by: Ben Dooks <[email protected]>
Signed-off-by: Russell King <[email protected]>
  • Loading branch information
Ben Dooks authored and Russell King committed Sep 9, 2006
1 parent 3142afb commit 189e74e
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions arch/arm/mach-s3c2410/s3c244x-irq.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,21 +119,24 @@ static int s3c244x_irq_add(struct sys_device *sysdev)
return 0;
}

static struct sysdev_driver s3c244x_irq_driver = {
static struct sysdev_driver s3c2440_irq_driver = {
.add = s3c244x_irq_add,
};

static int s3c2440_irq_init(void)
{
return sysdev_driver_register(&s3c2440_sysclass, &s3c244x_irq_driver);
return sysdev_driver_register(&s3c2440_sysclass, &s3c2440_irq_driver);
}

arch_initcall(s3c2440_irq_init);

static struct sysdev_driver s3c2442_irq_driver = {
.add = s3c244x_irq_add,
};

static int s3c2442_irq_init(void)
{
return sysdev_driver_register(&s3c2442_sysclass, &s3c244x_irq_driver);
return sysdev_driver_register(&s3c2442_sysclass, &s3c2442_irq_driver);
}

arch_initcall(s3c2442_irq_init);

0 comments on commit 189e74e

Please sign in to comment.