UPSTREAM: mainboard/kontron/986lcd-m: transition away from device_t
Replace the use of the old device_t definition inside mainboard/kontron/986lcd-m. BUG=None BRANCH=None TEST=None Signed-off-by: Antonello Dettori <dev@dettori.io> Reviewed-on: https://review.coreboot.org/17298 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth <martinroth@google.com> Change-Id: Ib47a4bb3580cb72ee51fb06c6faa6d2d1bd3a80c Reviewed-on: https://chromium-review.googlesource.com/410090 Commit-Ready: Furquan Shaikh <furquan@chromium.org> Tested-by: Furquan Shaikh <furquan@chromium.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
This commit is contained in:
parent
b4fbc41e55
commit
2e3c61a4b0
1 changed files with 3 additions and 3 deletions
|
|
@ -76,14 +76,14 @@ static void ich7_enable_lpc(void)
|
|||
}
|
||||
|
||||
/* TODO: superio code should really not be in mainboard */
|
||||
static void pnp_enter_func_mode(device_t dev)
|
||||
static void pnp_enter_func_mode(pnp_devfn_t dev)
|
||||
{
|
||||
u16 port = dev >> 8;
|
||||
outb(0x87, port);
|
||||
outb(0x87, port);
|
||||
}
|
||||
|
||||
static void pnp_exit_func_mode(device_t dev)
|
||||
static void pnp_exit_func_mode(pnp_devfn_t dev)
|
||||
{
|
||||
u16 port = dev >> 8;
|
||||
outb(0xaa, port);
|
||||
|
|
@ -96,7 +96,7 @@ static void pnp_exit_func_mode(device_t dev)
|
|||
*/
|
||||
static void early_superio_config_w83627thg(void)
|
||||
{
|
||||
device_t dev;
|
||||
pnp_devfn_t dev;
|
||||
|
||||
dev = PNP_DEV(0x2e, W83627THG_SP1);
|
||||
pnp_enter_func_mode(dev);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue