Skip to content

Commit

Permalink
ipmi_si: Move platform device handling to another file
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Minyard <cminyard@mvista.com>

Stephen Rothwell <sfr@canb.auug.org.au> fixed an issue with the
include files
  • Loading branch information
Corey Minyard committed Sep 28, 2017
1 parent 7a45330 commit 9d70029
Show file tree
Hide file tree
Showing 4 changed files with 613 additions and 589 deletions.
2 changes: 1 addition & 1 deletion drivers/char/ipmi/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#

ipmi_si-y := ipmi_si_intf.o ipmi_kcs_sm.o ipmi_smic_sm.o ipmi_bt_sm.o \
ipmi_si_hotmod.o ipmi_si_hardcode.o
ipmi_si_hotmod.o ipmi_si_hardcode.o ipmi_si_platform.o

obj-$(CONFIG_IPMI_HANDLER) += ipmi_msghandler.o
obj-$(CONFIG_IPMI_DEVICE_INTERFACE) += ipmi_devintf.o
Expand Down
6 changes: 6 additions & 0 deletions drivers/char/ipmi/ipmi_si.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
#define DEFAULT_REGSPACING 1
#define DEFAULT_REGSIZE 1

#define DEVICE_NAME "ipmi_si"

int ipmi_si_add_smi(struct si_sm_io *io);
irqreturn_t ipmi_si_irq_handler(int irq, void *data);
void ipmi_irq_start_cleanup(struct si_sm_io *io);
Expand All @@ -23,3 +25,7 @@ int ipmi_si_remove_by_dev(struct device *dev);
void ipmi_si_remove_by_data(int addr_space, enum si_type si_type,
unsigned long addr);
int ipmi_si_hardcode_find_bmc(void);
void ipmi_si_platform_init(void);
void ipmi_si_platform_shutdown(void);

extern struct platform_driver ipmi_platform_driver;
Loading

0 comments on commit 9d70029

Please sign in to comment.