Pull IPMI updates from Corey Minyard: "Some small fixes accumulated for IPMI, nothing major" * tag 'for-linus-5.5-1' of git://github.com/cminyard/linux-ipmi: ipmi: fix ipmb_poll()'s return type ipmi: kill off 'timespec' usage again drivers: ipmi: Support for both IPMB Req and Resp ipmi: Fix memory leak in __ipmi_bmc_register ipmi: bt-bmc: use devm_platform_ioremap_resource() to simplify code ipmi: use %*ph to print small buffer ipmi: Don't allow device module unload when in use
Showing the changes to include/linux (1 of 5 files). Show all
Unified · Split
| @@ -224,10 +224,14 @@ static inline int ipmi_demangle_device_id(uint8_t netfn, uint8_t cmd, · 223 unmodified lines | ||
| 224 | 224 | * is called, and the lower layer must get the interface from that |
| 225 | 225 | * call. |
| 226 | 226 | */ |
| 227 | −int ipmi_register_smi(const struct ipmi_smi_handlers *handlers, | |
| 228 | − void *send_info, | |
| 229 | − struct device *dev, | |
| 230 | − unsigned char slave_addr); | |
| 227 | +int ipmi_add_smi(struct module *owner, | |
| 228 | + const struct ipmi_smi_handlers *handlers, | |
| 229 | + void *send_info, | |
| 230 | + struct device *dev, | |
| 231 | + unsigned char slave_addr); | |
| 232 | + | |
| 233 | +#define ipmi_register_smi(handlers, send_info, dev, slave_addr) \ | |
| 234 | + ipmi_add_smi(THIS_MODULE, handlers, send_info, dev, slave_addr) | |
| 231 | 235 | |
| 232 | 236 | /* |
| 233 | 237 | * Remove a low-level interface from the IPMI driver. This will |