apc.c (84abd88a70090cf00f9e45c3a81680874f17626e) | apc.c (4018294b53d1dae026880e45f174c1cc63b5d435) |
---|---|
1/* apc - Driver implementation for power management functions 2 * of Aurora Personality Chip (APC) on SPARCstation-4/5 and 3 * derivatives. 4 * 5 * Copyright (c) 2002 Eric Brower (ebrower@usa.net) 6 */ 7 8#include <linux/kernel.h> --- 160 unchanged lines hidden (view full) --- 169 { 170 .name = APC_OBPNAME, 171 }, 172 {}, 173}; 174MODULE_DEVICE_TABLE(of, apc_match); 175 176static struct of_platform_driver apc_driver = { | 1/* apc - Driver implementation for power management functions 2 * of Aurora Personality Chip (APC) on SPARCstation-4/5 and 3 * derivatives. 4 * 5 * Copyright (c) 2002 Eric Brower (ebrower@usa.net) 6 */ 7 8#include <linux/kernel.h> --- 160 unchanged lines hidden (view full) --- 169 { 170 .name = APC_OBPNAME, 171 }, 172 {}, 173}; 174MODULE_DEVICE_TABLE(of, apc_match); 175 176static struct of_platform_driver apc_driver = { |
177 .name = "apc", 178 .match_table = apc_match, | 177 .driver = { 178 .name = "apc", 179 .owner = THIS_MODULE, 180 .of_match_table = apc_match, 181 }, |
179 .probe = apc_probe, 180}; 181 182static int __init apc_init(void) 183{ 184 return of_register_driver(&apc_driver, &of_bus_type); 185} 186 187/* This driver is not critical to the boot process 188 * and is easiest to ioremap when SBus is already 189 * initialized, so we install ourselves thusly: 190 */ 191__initcall(apc_init); | 182 .probe = apc_probe, 183}; 184 185static int __init apc_init(void) 186{ 187 return of_register_driver(&apc_driver, &of_bus_type); 188} 189 190/* This driver is not critical to the boot process 191 * and is easiest to ioremap when SBus is already 192 * initialized, so we install ourselves thusly: 193 */ 194__initcall(apc_init); |