question about drivers/usb/gadget/at91_udc.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The function at91udc_probe in the file drivers/usb/gadget/at91_udc.c contains the following code:

        udc->iclk = clk_get(dev, "udc_clk");
        udc->fclk = clk_get(dev, "udpck");
        if (IS_ERR(udc->iclk) || IS_ERR(udc->fclk)) {
                DBG("clocks missing\n");
		retval = -ENODEV;
                /* NOTE: we "know" here that refcounts on these are NOPs */
                goto fail0b;
        }

Why is it known here that refcounts are NOPs. When does this property cease to hold? clk_put is present in the corresponding remove function.

thanks,
julia
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux