|
@@ -113,14 +113,11 @@ static inline u64 of_read_number(const u32 *cell, int size)
|
|
|
}
|
|
|
|
|
|
/* Like of_read_number, but we want an unsigned long result */
|
|
|
-#ifdef CONFIG_PPC32
|
|
|
static inline unsigned long of_read_ulong(const u32 *cell, int size)
|
|
|
{
|
|
|
- return cell[size-1];
|
|
|
+ /* toss away upper bits if unsigned long is smaller than u64 */
|
|
|
+ return of_read_number(cell, size);
|
|
|
}
|
|
|
-#else
|
|
|
-#define of_read_ulong(cell, size) of_read_number(cell, size)
|
|
|
-#endif
|
|
|
|
|
|
#include <asm/prom.h>
|
|
|
|