Re: [PWM PATCH 1/5] API to consolidate PWM devices behind a common user and kernel interface

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

 



Bill Gatliff wrote:
> H Hartley Sweeten wrote:
>   
>> Your older patch just used printk's to output the messages.  I think the
>> Oops is being caused by the dev_<level>(pwm->dev, ...).  Where is pwm->dev
>> being setup?
>>   
>>     
>
> The intention was to save the result from device_create() called from
> __pwm_create_sysfs(), but I'm suspicious that the patch I posted doesn't
> have that code for some reason.  My local git repo here doesn't seem to
> have it.  Hmmm...
>   

No, that's not right.  Disregard the above.

If the PWM device in question is already known to the kernel, then
before you call pwm_register() you must set pwm->dev to the address of
that device structure.  I need to come up with a better way to handle this.

If the PWM device isn't already known to the kernel as a true struct
device, then I don't yet have a Plan B.  Drat.  :(


b.g.

-- 
Bill Gatliff
bgat@xxxxxxxxxxxxxxx


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

[Index of Archives]     [Gstreamer Embedded]     [Linux MMC Devel]     [U-Boot V2]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux ARM Kernel]     [Linux OMAP]     [Linux SCSI]

  Powered by Linux