mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
Merge branch 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc
* 'merge' of git://git.kernel.org/pub/scm/linux/kernel/git/benh/powerpc: (35 commits) powerpc/5121: make clock debug output more readable powerpc/5xxx: Add common mpc5xxx_get_bus_frequency() function powerpc/5200: Update pcm030.dts to add i2c eeprom and delete cruft powerpc/5200: convert mpc52xx_psc_spi to use cs_control callback fbdev/xilinxfb: Fix improper casting and tighen up probe path usb/ps3: Add missing annotations powerpc: Add memory clobber to mtspr() powerpc: Fix invalid construct in our CPU selection Kconfig ps3rom: Use ps3_system_bus_[gs]et_drvdata() instead of direct access powerpc: Add configurable -Werror for arch/powerpc of_serial: Add UPF_FIXED_TYPE flag drivers/hvc: Add missing __devexit_p() net/ps3: gelic - Add missing annotations powerpc: Introduce macro spin_event_timeout() powerpc/warp: Fix ISA_DMA_THRESHOLD default powerpc/bootwrapper: Custom build options for XPedite52xx targets powerpc/85xx: Add defconfig for X-ES MPC85xx boards powerpc/85xx: Add dts files for X-ES MPC85xx boards powerpc/85xx: Add platform support for X-ES MPC85xx boards 83xx: add support for the kmeter1 board. ...
This commit is contained in:
commit
773d7a09e1
82 changed files with 7907 additions and 216 deletions
|
|
@ -948,7 +948,7 @@ mpc52xx_fec_probe(struct of_device *op, const struct of_device_id *match)
|
|||
/* Start with safe defaults for link connection */
|
||||
priv->speed = 100;
|
||||
priv->duplex = DUPLEX_HALF;
|
||||
priv->mdio_speed = ((mpc52xx_find_ipb_freq(op->node) >> 20) / 5) << 1;
|
||||
priv->mdio_speed = ((mpc5xxx_get_bus_frequency(op->node) >> 20) / 5) << 1;
|
||||
|
||||
/* The current speed preconfigures the speed of the MII link */
|
||||
prop = of_get_property(op->node, "current-speed", &prop_size);
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ static int mpc52xx_fec_mdio_probe(struct of_device *of,
|
|||
|
||||
/* set MII speed */
|
||||
out_be32(&priv->regs->mii_speed,
|
||||
((mpc52xx_find_ipb_freq(of->node) >> 20) / 5) << 1);
|
||||
((mpc5xxx_get_bus_frequency(of->node) >> 20) / 5) << 1);
|
||||
|
||||
err = of_mdiobus_register(bus, np);
|
||||
if (err)
|
||||
|
|
|
|||
|
|
@ -214,9 +214,10 @@ static void gelic_card_free_chain(struct gelic_card *card,
|
|||
*
|
||||
* returns 0 on success, <0 on failure
|
||||
*/
|
||||
static int gelic_card_init_chain(struct gelic_card *card,
|
||||
struct gelic_descr_chain *chain,
|
||||
struct gelic_descr *start_descr, int no)
|
||||
static int __devinit gelic_card_init_chain(struct gelic_card *card,
|
||||
struct gelic_descr_chain *chain,
|
||||
struct gelic_descr *start_descr,
|
||||
int no)
|
||||
{
|
||||
int i;
|
||||
struct gelic_descr *descr;
|
||||
|
|
@ -407,7 +408,7 @@ rewind:
|
|||
*
|
||||
* returns 0 on success, < 0 on failure
|
||||
*/
|
||||
static int gelic_card_alloc_rx_skbs(struct gelic_card *card)
|
||||
static int __devinit gelic_card_alloc_rx_skbs(struct gelic_card *card)
|
||||
{
|
||||
struct gelic_descr_chain *chain;
|
||||
int ret;
|
||||
|
|
@ -1422,8 +1423,8 @@ static const struct net_device_ops gelic_netdevice_ops = {
|
|||
*
|
||||
* fills out function pointers in the net_device structure
|
||||
*/
|
||||
static void gelic_ether_setup_netdev_ops(struct net_device *netdev,
|
||||
struct napi_struct *napi)
|
||||
static void __devinit gelic_ether_setup_netdev_ops(struct net_device *netdev,
|
||||
struct napi_struct *napi)
|
||||
{
|
||||
netdev->watchdog_timeo = GELIC_NET_WATCHDOG_TIMEOUT;
|
||||
/* NAPI */
|
||||
|
|
@ -1443,7 +1444,8 @@ static void gelic_ether_setup_netdev_ops(struct net_device *netdev,
|
|||
* gelic_ether_setup_netdev initializes the net_device structure
|
||||
* and register it.
|
||||
**/
|
||||
int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card)
|
||||
int __devinit gelic_net_setup_netdev(struct net_device *netdev,
|
||||
struct gelic_card *card)
|
||||
{
|
||||
int status;
|
||||
u64 v1, v2;
|
||||
|
|
@ -1491,7 +1493,7 @@ int gelic_net_setup_netdev(struct net_device *netdev, struct gelic_card *card)
|
|||
* the card and net_device structures are linked to each other
|
||||
*/
|
||||
#define GELIC_ALIGN (32)
|
||||
static struct gelic_card *gelic_alloc_card_net(struct net_device **netdev)
|
||||
static struct gelic_card * __devinit gelic_alloc_card_net(struct net_device **netdev)
|
||||
{
|
||||
struct gelic_card *card;
|
||||
struct gelic_port *port;
|
||||
|
|
@ -1542,7 +1544,7 @@ static struct gelic_card *gelic_alloc_card_net(struct net_device **netdev)
|
|||
return card;
|
||||
}
|
||||
|
||||
static void gelic_card_get_vlan_info(struct gelic_card *card)
|
||||
static void __devinit gelic_card_get_vlan_info(struct gelic_card *card)
|
||||
{
|
||||
u64 v1, v2;
|
||||
int status;
|
||||
|
|
@ -1616,7 +1618,7 @@ static void gelic_card_get_vlan_info(struct gelic_card *card)
|
|||
/**
|
||||
* ps3_gelic_driver_probe - add a device to the control of this driver
|
||||
*/
|
||||
static int ps3_gelic_driver_probe(struct ps3_system_bus_device *dev)
|
||||
static int __devinit ps3_gelic_driver_probe(struct ps3_system_bus_device *dev)
|
||||
{
|
||||
struct gelic_card *card;
|
||||
struct net_device *netdev;
|
||||
|
|
|
|||
|
|
@ -2442,7 +2442,7 @@ static const struct iw_handler_def gelic_wl_wext_handler_def = {
|
|||
#endif
|
||||
};
|
||||
|
||||
static struct net_device *gelic_wl_alloc(struct gelic_card *card)
|
||||
static struct net_device * __devinit gelic_wl_alloc(struct gelic_card *card)
|
||||
{
|
||||
struct net_device *netdev;
|
||||
struct gelic_port *port;
|
||||
|
|
@ -2722,7 +2722,7 @@ static struct ethtool_ops gelic_wl_ethtool_ops = {
|
|||
.set_rx_csum = gelic_net_set_rx_csum,
|
||||
};
|
||||
|
||||
static void gelic_wl_setup_netdev_ops(struct net_device *netdev)
|
||||
static void __devinit gelic_wl_setup_netdev_ops(struct net_device *netdev)
|
||||
{
|
||||
struct gelic_wl_info *wl;
|
||||
wl = port_wl(netdev_priv(netdev));
|
||||
|
|
@ -2738,7 +2738,7 @@ static void gelic_wl_setup_netdev_ops(struct net_device *netdev)
|
|||
/*
|
||||
* driver probe/remove
|
||||
*/
|
||||
int gelic_wl_driver_probe(struct gelic_card *card)
|
||||
int __devinit gelic_wl_driver_probe(struct gelic_card *card)
|
||||
{
|
||||
int ret;
|
||||
struct net_device *netdev;
|
||||
|
|
|
|||
Loading…
Reference in a new issue