Skip to content

Commit

Permalink
x86/platform/intel-mid: Make intel_scu_device_register() static
Browse files Browse the repository at this point in the history
There is no need anymore to have intel_scu_device_register() exported. Annotate
it with static keyword.

While here, rename to intel_scu_ipc_device_register() to use same pattern for
all SFI enumerated device register helpers.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: http://lkml.kernel.org/r/20170107123457.53033-1-andriy.shevchenko@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Andy Shevchenko authored and Thomas Gleixner committed Jan 9, 2017
1 parent ecc7ea5 commit f1be6cd
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion arch/x86/include/asm/intel-mid.h
Original file line number Diff line number Diff line change
@@ -27,7 +27,6 @@ extern void intel_mid_pwr_power_off(void);
extern int intel_mid_pwr_get_lss_id(struct pci_dev *pdev);

extern int get_gpio_by_name(const char *name);
extern void intel_scu_device_register(struct platform_device *pdev);
extern int __init sfi_parse_mrtc(struct sfi_table_header *table);
extern int __init sfi_parse_mtmr(struct sfi_table_header *table);
extern int sfi_mrtc_num;
4 changes: 2 additions & 2 deletions arch/x86/platform/intel-mid/sfi.c
Original file line number Diff line number Diff line change
@@ -226,7 +226,7 @@ int get_gpio_by_name(const char *name)
return -EINVAL;
}

void __init intel_scu_device_register(struct platform_device *pdev)
static void __init intel_scu_ipc_device_register(struct platform_device *pdev)
{
if (ipc_next_dev == MAX_IPCDEVS)
pr_err("too many SCU IPC devices");
@@ -361,7 +361,7 @@ static void __init sfi_handle_ipc_dev(struct sfi_device_table_entry *pentry,

pdev->dev.platform_data = pdata;
if (dev->delay)
intel_scu_device_register(pdev);
intel_scu_ipc_device_register(pdev);
else
platform_device_add(pdev);
}

0 comments on commit f1be6cd

Please sign in to comment.