Skip to content
  • Stephen Boyd's avatar
    perf: xgene: Include module.h · c0bfc549
    Stephen Boyd authored
    
    
    I ran into a build error when I disabled CONFIG_ACPI and tried to
    compile this driver:
    
    drivers/perf/xgene_pmu.c:1242:1: warning: data definition has no type or storage class
     MODULE_DEVICE_TABLE(of, xgene_pmu_of_match);
     ^
    drivers/perf/xgene_pmu.c:1242:1: error: type defaults to 'int' in declaration of 'MODULE_DEVICE_TABLE' [-Werror=implicit-int]
    
    Include module.h for the MODULE_DEVICE_TABLE macro that's
    implicitly included through ACPI.
    
    Tested-by: default avatarTai Nguyen <ttnguyen@apm.com>
    Signed-off-by: default avatarStephen Boyd <sboyd@codeaurora.org>
    Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
    c0bfc549