~ubuntu-branches/ubuntu/raring/linux-ppc/raring-proposed

« back to all changes in this revision

Viewing changes to drivers/net/dpa/mac.c

  • Committer: Package Import Robot
  • Author(s): Ben Collins, Ben Collins, PPC Ubuntu: 3.8.0-1.4, Adam Conrad, Andy Whitcroft, Ubuntu: 3.8.0-1.5, Ubuntu: 3.8.0-0.4, Ubuntu: 3.8.0-0.3
  • Date: 2013-01-22 20:41:25 UTC
  • mfrom: (16.1.1 raring)
  • Revision ID: package-import@ubuntu.com-20130122204125-zw3j1vl5temxb1gr
Tags: 3.8.0-1.5
[ Ben Collins ]

* SAUCE: Remove __devinit and __devexit annotations
* SAUCE: Add op emulation to allow newer kernels to run under e500
  qemu-kvm

[ PPC Ubuntu: 3.8.0-1.4 ]

[ Adam Conrad ]

* Sync build-deps with master to avoid future FTBFS
* Fix up linux-tools -> SRCPKGNAME-tools rename
* Add a debian/source/options file to ignore cruft

[ Andy Whitcroft ]

* [Config] enable various HVC consoles
  - LP: #1102206
* [Config] linux-image-* should Suggests: linux-headers-*
  - LP: #1029730

[ Ubuntu: 3.8.0-1.5 ]

* Release Tracking Bug
  - LP: #1101235
* SAUCE: Input: add support for Cypress PS/2 Trackpads
  - LP: #978807
* SAUCE: Input: increase struct ps2dev cmdbuf[] to 8 bytes
* SAUCE: Input: Cypress PS/2 Trackpad simulated multitouch
* [Config] Add CONFIG_PS2_CYPRESS
* rebase to v3.8-rc4
* rebase to v3.8-rc4
  - LP: #1095315
  - LP: #886975
  - LP: #1086921

[ Ubuntu: 3.8.0-0.4 ]

* [Config] Update CONFIG_TOUCHSCREEN_EGALAX build annotation
* [Config] Update CONFIG_IIO build annotation
* [Config] Update CONFIG_TOUCHSCREEN_EETI annotation
* [Config] Remove CONFIG_SPI_DW_MMIO annotation
* [Config] Remove CONFIG_SPI_PL022 annotation
* [Config] Update CONFIG_EZX_PCAP annotation
* [Config] Update CONFIG_SENSORS_AK8975 annotation
* [Config] Disable CONFIG_DRM_MGAG200
  - LP: #1042903

[ Ubuntu: 3.8.0-0.3 ]

* Revert "SAUCE: (no-up) trace: add trace events for open(), exec() and
  uselib()"
* SAUCE: (no-up) trace: add trace events for open(), exec() and uselib()
  (for v3.7+)
  - LP: #1085766, #462111

Show diffs side-by-side

added added

removed removed

Lines of Context:
50
50
        | SUPPORTED_Autoneg \
51
51
        | SUPPORTED_MII)
52
52
 
53
 
static const char phy_str[][11] __devinitconst =
 
53
static const char phy_str[][11] =
54
54
{
55
55
        [PHY_INTERFACE_MODE_MII]        = "mii",
56
56
        [PHY_INTERFACE_MODE_GMII]       = "gmii",
65
65
        [PHY_INTERFACE_MODE_XGMII]      = "xgmii"
66
66
};
67
67
 
68
 
static phy_interface_t __devinit __pure __attribute__((nonnull)) str2phy(const char *str)
 
68
static phy_interface_t __pure __attribute__((nonnull)) str2phy(const char *str)
69
69
{
70
70
        int i;
71
71
 
76
76
        return PHY_INTERFACE_MODE_MII;
77
77
}
78
78
 
79
 
static const uint16_t phy2speed[] __devinitconst =
 
79
static const uint16_t phy2speed[] =
80
80
{
81
81
        [PHY_INTERFACE_MODE_MII]        = SPEED_100,
82
82
        [PHY_INTERFACE_MODE_GMII]       = SPEED_1000,
91
91
        [PHY_INTERFACE_MODE_XGMII]      = SPEED_10000
92
92
};
93
93
 
94
 
static struct mac_device * __devinit __cold
 
94
static struct mac_device * __cold
95
95
alloc_macdev(struct device *dev, size_t sizeof_priv, void (*setup)(struct mac_device *mac_dev))
96
96
{
97
97
        struct mac_device       *mac_dev;
108
108
        return mac_dev;
109
109
}
110
110
 
111
 
static int __devexit __cold free_macdev(struct mac_device *mac_dev)
 
111
static int __cold free_macdev(struct mac_device *mac_dev)
112
112
{
113
113
        dev_set_drvdata(mac_dev->dev, NULL);
114
114
 
115
115
        return mac_dev->uninit(mac_dev);
116
116
}
117
117
 
118
 
static const struct of_device_id mac_match[] __devinitconst = {
 
118
static const struct of_device_id mac_match[] = {
119
119
        [DTSEC] = {
120
120
                .compatible     = "fsl,fman-1g-mac"
121
121
        },
126
126
};
127
127
MODULE_DEVICE_TABLE(of, mac_match);
128
128
 
129
 
static int __devinit __cold mac_probe(struct platform_device *_of_dev)
 
129
static int __cold mac_probe(struct platform_device *_of_dev)
130
130
{
131
131
        int                      _errno, i, lenp;
132
132
        struct device           *dev;
363
363
        return _errno;
364
364
}
365
365
 
366
 
static int __devexit __cold mac_remove(struct platform_device *of_dev)
 
366
static int __cold mac_remove(struct platform_device *of_dev)
367
367
{
368
368
        int                      i, _errno;
369
369
        struct device           *dev;
389
389
                .owner          = THIS_MODULE,
390
390
        },
391
391
        .probe          = mac_probe,
392
 
        .remove         = __devexit_p(mac_remove)
 
392
        .remove         =mac_remove
393
393
};
394
394
 
395
395
static int __init __cold mac_load(void)