• Grant Likely's avatar
    of: Merge of_platform_bus_type with platform_bus_type · eca39301
    Grant Likely authored
    of_platform_bus was being used in the same manner as the platform_bus.
    The only difference being that of_platform_bus devices are generated
    from data in the device tree, and platform_bus devices are usually
    statically allocated in platform code.  Having them separate causes
    the problem of device drivers having to be registered twice if it
    was possible for the same device to appear on either bus.
    
    This patch removes of_platform_bus_type and registers all of_platform
    bus devices and drivers on the platform bus instead.  A previous patch
    made the of_device structure an alias for the platform_device structure,
    and a shim is used to adapt of_platform_drivers to the platform bus.
    
    After all of of_platform_bus drivers are converted to be normal platform
    drivers, the shim code can be removed.
    Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
    Acked-by: default avatarDavid S. Miller <davem@davemloft.net>
    eca39301
platform.c 16.9 KB