Skip to contentSkip to conversation

3.8 no mach include directory anymore?

DISCUSSION Tim Sander 2 participants 2 messages Apr 5, 2013

lore
Share & tools
lore

Tim Sander

author
#0 lore raw

Hi

I have a small driver which uses the MX35_IO_ADDRESS which had been defined in #include <mach/mx35.h>
but while the mx35.h file still exist the include directory has vanished?

Any idea how to get the module compiling again with 3.8?

Thanks
Tim

#1 lore raw

Hi Tim,

Quoted 4 lines · Tim Sander

Hi

I have a small driver which uses the MX35_IO_ADDRESS which had been defined in #include <mach/mx35.h>

A driver should never use MX35_IO_ADDRESS.

Quoted 3 lines

but while the mx35.h file still exist the include directory has vanished?

Any idea how to get the module compiling again with 3.8?

Use ioremap, add whatever hack is necessary, or very much preferred:
Convert you board over to devicetree and retrieve the base address properly from there.

Sascha

Signature · 4 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |