Skip to content

Commit 1e4d4d5

Browse files
author
Fox Snowpatch
committed
1 parent 182544a commit 1e4d4d5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • arch/powerpc/platforms/8xx

arch/powerpc/platforms/8xx/cpm1.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,15 +477,15 @@ int cpm1_gpiochip_add16(struct device *dev)
477477
struct device_node *np = dev->of_node;
478478
struct cpm1_gpio16_chip *cpm1_gc;
479479
struct gpio_chip *gc;
480-
u16 mask;
480+
u32 mask;
481481

482482
cpm1_gc = devm_kzalloc(dev, sizeof(*cpm1_gc), GFP_KERNEL);
483483
if (!cpm1_gc)
484484
return -ENOMEM;
485485

486486
spin_lock_init(&cpm1_gc->lock);
487487

488-
if (!of_property_read_u16(np, "fsl,cpm1-gpio-irq-mask", &mask)) {
488+
if (!of_property_read_u32(np, "fsl,cpm1-gpio-irq-mask", &mask)) {
489489
int i, j;
490490

491491
for (i = 0, j = 0; i < 16; i++)

0 commit comments

Comments
 (0)