Changeset 721b1c1 in rtems-libbsd


Ignore:
Timestamp:
May 17, 2017, 7:25:39 AM (2 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
5283630d2c9d40deb0183696d278e02644fe4326, bc2ba9a9cdc7381c2a4f2ae6ee303be636f31368
Children:
cf40770
Parents:
cd089b9
git-author:
Sebastian Huber <sebastian.huber@…> (05/17/17 07:25:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (10/23/17 07:24:05)
Message:

qbman: Fix platform_get_irq() error checks

Location:
linux/drivers/soc/fsl/qbman
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • linux/drivers/soc/fsl/qbman/bman_ccsr.c

    rcd089b9 r721b1c1  
    224224
    225225        err_irq = platform_get_irq(pdev, 0);
    226         if (err_irq <= 0) {
     226        if (err_irq < 0) {
    227227                dev_info(dev, "Can't get %s IRQ\n", node->full_name);
    228228                return -ENODEV;
  • linux/drivers/soc/fsl/qbman/qman_ccsr.c

    rcd089b9 r721b1c1  
    770770
    771771        err_irq = platform_get_irq(pdev, 0);
    772         if (err_irq <= 0) {
     772        if (err_irq < 0) {
    773773                dev_info(dev, "Can't get %s property 'interrupts'\n",
    774774                         node->full_name);
  • linux/drivers/soc/fsl/qbman/qman_portal.c

    rcd089b9 r721b1c1  
    279279        pcfg->cpu = -1;
    280280        irq = platform_get_irq(pdev, 0);
    281         if (irq <= 0) {
     281        if (irq < 0) {
    282282                dev_err(dev, "Can't get %s IRQ\n", node->full_name);
    283283                return -ENXIO;
Note: See TracChangeset for help on using the changeset viewer.