]> asedeno.scripts.mit.edu Git - linux.git/commit
fpga: dfl: use driver core functions, not sysfs ones.
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 4 Jul 2019 05:56:45 +0000 (07:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 12:32:25 +0000 (14:32 +0200)
commitdcfecd4d7a551906595351a26e1db91774b8563d
tree28ce6a37efb2baf47a499b7a02b8cac5c6893e58
parent7bdd9695970eb8cd5b987e08f99cb8f0c84f30fd
fpga: dfl: use driver core functions, not sysfs ones.

This is a driver, do not call "raw" sysfs functions, instead call driver
core ones.  Specifically convert the use of sysfs_create_files() and
sysfs_remove_files() to use device_add_groups() and
device_remove_groups()

Cc: Wu Hao <hao.wu@intel.com>
Cc: Alan Tull <atull@kernel.org>
Cc: Moritz Fischer <mdf@kernel.org>
Cc: linux-fpga@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Link: https://lore.kernel.org/r/20190704055645.GA15471@kroah.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/fpga/dfl-afu-main.c
drivers/fpga/dfl-fme-main.c