Skip to content

Commit

Permalink
mmc: cb710: fix #ifdef HAVE_EFFICIENT_UNALIGNED_ACCESS
Browse files Browse the repository at this point in the history
HAVE_EFFICIENT_UNALIGNED_ACCESS is a config option, therefore it needs
the CONFIG_ before it when used by the preprocessor.

Signed-off-by: James Hogan <[email protected]>
Acked-by: Michał Mirosław <[email protected]>
Signed-off-by: Chris Ball <[email protected]>
  • Loading branch information
amalon authored and cjb committed Jun 25, 2011
1 parent 3e71337 commit e9e8bcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/misc/cb710/sgbuf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ static uint32_t sg_dwiter_read_buffer(struct sg_mapping_iter *miter)

static inline bool needs_unaligned_copy(const void *ptr)
{
#ifdef HAVE_EFFICIENT_UNALIGNED_ACCESS
#ifdef CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
return false;
#else
return ((ptr - NULL) & 3) != 0;
Expand Down

0 comments on commit e9e8bcb

Please sign in to comment.