staging: omapdrm: Fix DMM sparse warnings
[deliverable/linux.git] / drivers / staging / omapdrm / omap_dmm_tiler.c
index 86197831f63ec01bc9f42f9979a0b56e941d4dc2..ec7a5c8f53638ef72db2150633958a86b13a619d 100644 (file)
@@ -120,7 +120,7 @@ static int wait_status(struct refill_engine *engine, uint32_t wait_mask)
        return 0;
 }
 
-irqreturn_t omap_dmm_irq_handler(int irq, void *arg)
+static irqreturn_t omap_dmm_irq_handler(int irq, void *arg)
 {
        struct dmm *dmm = arg;
        uint32_t status = readl(dmm->base + DMM_PAT_IRQSTATUS);
@@ -367,7 +367,7 @@ struct tiler_block *tiler_reserve_1d(size_t size)
        int num_pages = (size + PAGE_SIZE - 1) >> PAGE_SHIFT;
 
        if (!block)
-               return 0;
+               return ERR_PTR(-ENOMEM);
 
        block->fmt = TILFMT_PAGE;
 
This page took 0.02793 seconds and 5 git commands to generate.