staging/rdma/hfi1: Use device file minor to identify EPROM
authorDean Luick <dean.luick@intel.com>
Wed, 3 Feb 2016 22:34:58 +0000 (14:34 -0800)
committerDoug Ledford <dledford@redhat.com>
Fri, 11 Mar 2016 01:37:54 +0000 (20:37 -0500)
commitd24bc6481e376da3b7f226b57b39b0ae4088b8d9
treede5d0979c5620d077be6ae193a793e70956c9d95
parent82ab09e131ffb0497c9631e2c53b44fbf9ad5e1c
staging/rdma/hfi1: Use device file minor to identify EPROM

When writing to the EPROM, the driver will always use the
"first" device.  This is incorrect for multiple cards.

Use the device file minor to determine the device to use.
Reject the generic device file.

Reviewed-by: Mitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Jubin John <jubin.john@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/eprom.c
drivers/staging/rdma/hfi1/eprom.h
drivers/staging/rdma/hfi1/file_ops.c