edac: only create sdram_scrub_rate where supported
authorMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 19 Feb 2013 11:04:55 +0000 (08:04 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Feb 2013 14:06:31 +0000 (11:06 -0300)
commite7100478fa894c45ae33321b5721b5a8f956b814
treeb7a7b9b8c723d3bbd09bc92b349a417d1f8814b9
parent61734e1835867e6e38438c8365149748641e3525
edac: only create sdram_scrub_rate where supported

Currently, sdram_scrub_rate sysfs node is created even if the device
doesn't support get/set the scub rate. Change the logic to only
create this device node when the operation is supported.

Reported-by: Felipe Balbi <balbi@ti.com>
Acked-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/edac/edac_mc_sysfs.c
This page took 0.028297 seconds and 5 git commands to generate.