Skip to content
Commit f573a787 authored by Amit Kumar Mahapatra's avatar Amit Kumar Mahapatra Committed by Quanyang Wang
Browse files

mtd: spi-nor: Fix linking failure for ARCH arm

commit d67d21c650c6d72857d8b9e254d0d1256a3c1ca1 from
https://github.com/Xilinx/linux-xlnx.git

 xlnx_rebase_v6.1

64-bit division "(u64 A) / (u32 B)" will break linking on ARCH arm:

arm-xilinx-linux-gnueabi-ld.real: drivers/mtd/spi-nor/core.o: in function
`spi_nor_read': core.c.text+0x2178): undefined reference to
`__aeabi_ldivmod'

Fix this by using do_div.

Reported-by: default avatarRadhey Shyam Pandey <radhey.shyam.pandey@amd.com>
Suggested-by: default avatarMichal Simek <michal.simek@amd.com>
Signed-off-by: default avatarAmit Kumar Mahapatra <amit.kumar-mahapatra@amd.com>
State: pending
Signed-off-by: default avatarQuanyang Wang <quanyang.wang@windriver.com>
parent d154af53
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment