maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofault
Better describe what these functions do. Suggested-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
committed by
Linus Torvalds
parent
b3a9e3b962
commit
fe557319aa
@@ -1021,7 +1021,7 @@ static int __init hp_sdc_register(void)
|
||||
hp_sdc.base_io = (unsigned long) 0xf0428000;
|
||||
hp_sdc.data_io = (unsigned long) hp_sdc.base_io + 1;
|
||||
hp_sdc.status_io = (unsigned long) hp_sdc.base_io + 3;
|
||||
if (!probe_kernel_read(&i, (unsigned char *)hp_sdc.data_io, 1))
|
||||
if (!copy_from_kernel_nofault(&i, (unsigned char *)hp_sdc.data_io, 1))
|
||||
hp_sdc.dev = (void *)1;
|
||||
hp_sdc.dev_err = hp_sdc_init();
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user