Ignore:
Timestamp:
Jan 24, 2021, 9:18:35 AM (5 years ago)
Author:
Paul Smedley
Message:

Fix warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • GPL/branches/uniaud32-next/lib32/regmap.c

    r652 r654  
    460460static void regmap_lock_hwlock(void *__map)
    461461{
     462#ifndef TARGET_OS2
    462463        struct regmap *map = __map;
    463464
    464 //      hwspin_lock_timeout(map->hwlock, UINT_MAX);
     465        hwspin_lock_timeout(map->hwlock, UINT_MAX);
     466#endif
    465467}
    466468
    467469static void regmap_lock_hwlock_irq(void *__map)
    468470{
     471#ifndef TARGET_OS2
    469472        struct regmap *map = __map;
    470473
    471 //      hwspin_lock_timeout_irq(map->hwlock, UINT_MAX);
     474        hwspin_lock_timeout_irq(map->hwlock, UINT_MAX);
     475#endif
    472476}
    473477
    474478static void regmap_lock_hwlock_irqsave(void *__map)
    475479{
     480#ifndef TARGET_OS2
    476481        struct regmap *map = __map;
    477482
    478 //      hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX,
    479 //                                  &map->spinlock_flags);
     483        hwspin_lock_timeout_irqsave(map->hwlock, UINT_MAX,
     484                                    &map->spinlock_flags);
     485#endif
    480486}
    481487
    482488static void regmap_unlock_hwlock(void *__map)
    483489{
     490#ifndef TARGET_OS2
    484491        struct regmap *map = __map;
    485492
    486 //      hwspin_unlock(map->hwlock);
     493        hwspin_unlock(map->hwlock);
     494#endif
    487495}
    488496
    489497static void regmap_unlock_hwlock_irq(void *__map)
    490498{
     499#ifndef TARGET_OS2
    491500        struct regmap *map = __map;
    492501
    493 //      hwspin_unlock_irq(map->hwlock);
     502        hwspin_unlock_irq(map->hwlock);
     503#endif
    494504}
    495505
    496506static void regmap_unlock_hwlock_irqrestore(void *__map)
    497507{
     508#ifndef TARGET_OS2
    498509        struct regmap *map = __map;
    499510
    500 //      hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags);
     511        hwspin_unlock_irqrestore(map->hwlock, &map->spinlock_flags);
     512#endif
    501513}
    502514
     
    685697#ifndef TARGET_OS2
    686698        struct fwnode_handle *fwnode = dev ? dev_fwnode(dev) : NULL;
    687 #else
    688         struct fwnode_handle *fwnode = NULL;
    689699#endif
    690700        enum regmap_endian endian;
     
    12301240        if (map->hwlock)
    12311241                hwspin_lock_free(map->hwlock);
    1232 #endif
    12331242err_name:
    1234 #ifndef TARGET_OS2
    12351243        kfree_const(map->name);
    1236 #else
    1237         kfree(map->name);
    12381244#endif
    12391245err_map:
     
    23592365        kfree(buf);
    23602366
     2367#ifndef TARGET_OS2
    23612368        for (i = 0; i < num_regs; i++) {
    23622369                int reg = regs[i].reg;
    2363         }
     2370                trace_regmap_hw_write_done(map, reg, 1);
     2371        }
     2372#endif
    23642373        return ret;
    23652374}
     
    31713180EXPORT_SYMBOL_GPL(regmap_async_complete_cb);
    31723181
     3182#ifndef TARGET_OS2
    31733183static int regmap_async_is_done(struct regmap *map)
    31743184{
     
    31823192        return ret;
    31833193}
     3194#endif
    31843195
    31853196/**
Note: See TracChangeset for help on using the changeset viewer.