22 Jun, 2011

1 commit

  • Remove linux/mm.h inclusion from netdevice.h -- it's unused (I've checked manually).

    To prevent mm.h inclusion via other channels also extract "enum dma_data_direction"
    definition into separate header. This tiny piece is what gluing netdevice.h with mm.h
    via "netdevice.h => dmaengine.h => dma-mapping.h => scatterlist.h => mm.h".
    Removal of mm.h from scatterlist.h was tried and was found not feasible
    on most archs, so the link was cutoff earlier.

    Hope people are OK with tiny include file.

    Note, that mm_types.h is still dragged in, but it is a separate story.

    Signed-off-by: Alexey Dobriyan
    Signed-off-by: David S. Miller

    Alexey Dobriyan
     

19 May, 2011

1 commit

  • ... together with the related devices "mx3_camera" and "mx3_sdc_fb".

    "mx3_camera" doesn't fit the scheme of the other devices that just are
    allocated and registered in a single function because it needs additional
    care to get some dmaable memory. So currently imx31_alloc_mx3_camera
    duplicates most of imx_add_platform_device_dmamask, but I'm not sure it's
    worth to split the latter to be able to reuse more code.

    This gets rid of mach-mx3/devices.[ch] and so several files need to be
    adapted not to #include devices.h anymore.

    LAKML-Reference: 1299271882-2130-5-git-send-email-u.kleine-koenig@pengutronix.de
    Signed-off-by: Uwe Kleine-König
    Signed-off-by: Sascha Hauer

    Uwe Kleine-König