On Mon, Jun 27, 2011 at 8:33 PM, Todd Poynor <[email protected]> wrote:
> On Fri, Jun 24, 2011 at 04:38:05PM +0200, [email protected] wrote:
> ...
>> +     /* Find the associated omap_device for dev */
>> +     od = container_of(pdev, struct omap_device, pdev);
>> +     if (!od || (od->hwmods_cnt != 1)) {
>> +             pr_err("%s: Error: No unique hwmod for device %s\n",
>> +                    __func__, dev_name(pm_qos_req->dev));
>> +             return -EINVAL;
>
> Check for !od can be dropped... if there's a check for !pdev needed
> can add that, but container_of() won't return NULL for a valid
> contained field.
Ok fixed in the v2 version.

Thanks!
Jean


>
>
> Todd
>
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to