[PATCHv3 3/3] edac: altera: Add EDAC support for Altera SDRAM

Thor Thayer tthayer.linux at gmail.com
Fri May 9 13:04:47 PDT 2014


On Thu, May 8, 2014 at 5:44 PM, Dinh Nguyen <dinh.linux at gmail.com> wrote:
>
> On 5/5/14 5:52 PM, tthayer at altera.com wrote:
>> From: Thor Thayer <tthayer at altera.com>
>>
>> ---
>> v2: Use the SDRAM controller registers to calculate memory size
>>     instead of the Device Tree. Update To & Cc list. Add maintainer
>>     information.

<snip>

>> +
>> +err2er altr_sdram_edac_driver = {
>> +     .probe = altr_sdram_probe,
>> +     .remove = altr_sdram_remove,
>> +     .driver = {
>> +             .name = "altr_sdram_edac",
>> +             .of_match_table = of_match_ptr(altr_sdram_ctrl_of_match),
> I don't think you need of_match_ptr here for this platform as SOCFPGA is
> only a DT platform. All that of_match_ptr() does for a CONFIG_OF platform
> is just return the pointer.
>
> Dinh

Thanks Dinh. I'll remove it in my next submission.

>> +     },
>> +};
>> +
>> +module_platform_driver(altr_sdram_edac_driver);
>> +
>> +MODULE_LICENSE("GPL v2");
>> +MODULE_AUTHOR("Altera Corporation");
>> +MODULE_DESCRIPTION("EDAC Driver for Altera SDRAM Controller");
>



More information about the linux-arm-kernel mailing list