未验证 提交 d9dd0fb0 编写于 作者: M Matthew Gerlach 提交者: Mark Brown

spi: altera: fix size mismatch on 64 bit processors

The spi-altera driver was originally written with a 32
bit processor, where sizeof(unsigned long) is 4.  On a
64 bit processor sizeof(unsigned long) is 8.  Change the structure
member to u32 to match the actual size of the control
register.
Signed-off-by: NMatthew Gerlach <matthew.gerlach@linux.intel.com>
Signed-off-by: NXu Yilun <yilun.xu@intel.com>
Reviewed-by: NTom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/1592531021-11412-4-git-send-email-yilun.xu@intel.comSigned-off-by: NMark Brown <broonie@kernel.org>
上级 3820061d
......@@ -53,7 +53,7 @@ struct altera_spi {
int len;
int count;
int bytes_per_word;
unsigned long imr;
u32 imr;
/* data buffers */
const unsigned char *tx;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册