mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial
* git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial: (25 commits) Documentation/kernel-docs.txt update. arch/cris: typo in KERN_INFO Storage class should be before const qualifier kernel/printk.c: comment fix update I/O sched Kconfig help texts - CFQ is now default, not AS. Remove duplicate listing of Cris arch from README kbuild: more doc. cleanups doc: make doc. for maxcpus= more visible drivers/net/eexpress.c: remove duplicate comment add a help text for BLK_DEV_GENERIC correct a dead URL in the IP_MULTICAST help text fix the BAYCOM_SER_HDX help text fix SCSI_SCAN_ASYNC help text trivial documentation patch for platform.txt Fix typos concerning hierarchy Fix comment typo "spin_lock_irqrestore". Fix misspellings of "agressive". drivers/scsi/a100u2w.c: trivial typo patch Correct trivial typo in log2.h. Remove useless FIND_FIRST_BIT() macro from cardbus.c. ...
This commit is contained in:
commit
874ff01bd9
90 changed files with 304 additions and 314 deletions
|
|
@ -103,7 +103,7 @@ static SYSDEV_ATTR(crash_notes, 0400, show_crash_notes, NULL);
|
|||
#endif
|
||||
|
||||
/*
|
||||
* register_cpu - Setup a driverfs device for a CPU.
|
||||
* register_cpu - Setup a sysfs device for a CPU.
|
||||
* @cpu - cpu->hotpluggable field set to 1 will generate a control file in
|
||||
* sysfs for this CPU.
|
||||
* @num - CPU number to use when creating the device.
|
||||
|
|
|
|||
|
|
@ -133,7 +133,7 @@ static SYSDEV_ATTR(distance, S_IRUGO, node_read_distance, NULL);
|
|||
|
||||
|
||||
/*
|
||||
* register_node - Setup a driverfs device for a node.
|
||||
* register_node - Setup a sysfs device for a node.
|
||||
* @num - Node number to use when creating the device.
|
||||
*
|
||||
* Initialize and register the node device.
|
||||
|
|
|
|||
|
|
@ -1146,7 +1146,7 @@ static int __init rio_init(void)
|
|||
rio_dprintk(RIO_DEBUG_INIT, "Enabling interrupts on rio card.\n");
|
||||
hp->Mode |= RIO_PCI_INT_ENABLE;
|
||||
} else
|
||||
hp->Mode &= !RIO_PCI_INT_ENABLE;
|
||||
hp->Mode &= ~RIO_PCI_INT_ENABLE;
|
||||
rio_dprintk(RIO_DEBUG_INIT, "New Mode: %x\n", hp->Mode);
|
||||
rio_start_card_running(hp);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -494,7 +494,7 @@ static int __devinit ali1535_probe(struct pci_dev *dev, const struct pci_device_
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
ali1535_adapter.dev.parent = &dev->dev;
|
||||
|
||||
snprintf(ali1535_adapter.name, I2C_NAME_SIZE,
|
||||
|
|
|
|||
|
|
@ -489,7 +489,7 @@ static int __devinit ali15x3_probe(struct pci_dev *dev, const struct pci_device_
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
ali15x3_adapter.dev.parent = &dev->dev;
|
||||
|
||||
snprintf(ali15x3_adapter.name, I2C_NAME_SIZE,
|
||||
|
|
|
|||
|
|
@ -374,7 +374,7 @@ static int __devinit amd756_probe(struct pci_dev *pdev,
|
|||
dev_dbg(&pdev->dev, "SMBREV = 0x%X\n", temp);
|
||||
dev_dbg(&pdev->dev, "AMD756_smba = 0x%X\n", amd756_ioport);
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
amd756_smbus.dev.parent = &pdev->dev;
|
||||
|
||||
sprintf(amd756_smbus.name, "SMBus %s adapter at %04x",
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ static int __devinit amd8111_probe(struct pci_dev *dev,
|
|||
smbus->adapter.algo = &smbus_algorithm;
|
||||
smbus->adapter.algo_data = smbus;
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
smbus->adapter.dev.parent = &dev->dev;
|
||||
|
||||
pci_write_config_dword(smbus->dev, AMD_PCI_MISC, 0);
|
||||
|
|
|
|||
|
|
@ -522,7 +522,7 @@ static int __devinit i801_probe(struct pci_dev *dev, const struct pci_device_id
|
|||
else
|
||||
dev_dbg(&dev->dev, "SMBus using PCI Interrupt\n");
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
i801_adapter.dev.parent = &dev->dev;
|
||||
|
||||
snprintf(i801_adapter.name, I2C_NAME_SIZE,
|
||||
|
|
|
|||
|
|
@ -425,7 +425,7 @@ static int __devinit piix4_probe(struct pci_dev *dev,
|
|||
if (retval)
|
||||
return retval;
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
piix4_adapter.dev.parent = &dev->dev;
|
||||
|
||||
snprintf(piix4_adapter.name, I2C_NAME_SIZE,
|
||||
|
|
|
|||
|
|
@ -384,7 +384,7 @@ static int __devinit sis5595_probe(struct pci_dev *dev, const struct pci_device_
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
sis5595_adapter.dev.parent = &dev->dev;
|
||||
|
||||
sprintf(sis5595_adapter.name, "SMBus SIS5595 adapter at %04x",
|
||||
|
|
|
|||
|
|
@ -477,7 +477,7 @@ static int __devinit sis630_probe(struct pci_dev *dev, const struct pci_device_i
|
|||
return -ENODEV;
|
||||
}
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
sis630_adapter.dev.parent = &dev->dev;
|
||||
|
||||
sprintf(sis630_adapter.name, "SMBus SIS630 adapter at %04x",
|
||||
|
|
|
|||
|
|
@ -297,7 +297,7 @@ static int __devinit sis96x_probe(struct pci_dev *dev,
|
|||
return -EINVAL;
|
||||
}
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
sis96x_adapter.dev.parent = &dev->dev;
|
||||
|
||||
snprintf(sis96x_adapter.name, I2C_NAME_SIZE,
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ static int __devinit vt586b_probe(struct pci_dev *dev, const struct pci_device_i
|
|||
outb(inb(I2C_DIR) & ~(I2C_SDA | I2C_SCL), I2C_DIR);
|
||||
outb(inb(I2C_OUT) & ~(I2C_SDA | I2C_SCL), I2C_OUT);
|
||||
|
||||
/* set up the driverfs linkage to our parent device */
|
||||
/* set up the sysfs linkage to our parent device */
|
||||
vt586b_adapter.dev.parent = &dev->dev;
|
||||
|
||||
res = i2c_bit_add_bus(&vt586b_adapter);
|
||||
|
|
|
|||
|
|
@ -383,6 +383,9 @@ config BLK_DEV_OFFBOARD
|
|||
config BLK_DEV_GENERIC
|
||||
tristate "Generic PCI IDE Chipset Support"
|
||||
depends on BLK_DEV_IDEPCI
|
||||
help
|
||||
This option provides generic support for various PCI IDE Chipsets
|
||||
which otherwise might not be supported.
|
||||
|
||||
config BLK_DEV_OPTI621
|
||||
tristate "OPTi 82C621 chipset enhanced support (EXPERIMENTAL)"
|
||||
|
|
|
|||
|
|
@ -180,7 +180,7 @@ static int alloc_dma_trm_ctx(struct ti_ohci *ohci, struct dma_trm_ctx *d,
|
|||
static void ohci1394_pci_remove(struct pci_dev *pdev);
|
||||
|
||||
#ifndef __LITTLE_ENDIAN
|
||||
const static size_t hdr_sizes[] = {
|
||||
static const size_t hdr_sizes[] = {
|
||||
3, /* TCODE_WRITEQ */
|
||||
4, /* TCODE_WRITEB */
|
||||
3, /* TCODE_WRITE_RESPONSE */
|
||||
|
|
|
|||
|
|
@ -1534,7 +1534,7 @@ static int ipath_ht_early_init(struct ipath_devdata *dd)
|
|||
* @kbase: ipath_base_info pointer
|
||||
*
|
||||
* We set the PCIE flag because the lower bandwidth on PCIe vs
|
||||
* HyperTransport can affect some user packet algorithims.
|
||||
* HyperTransport can affect some user packet algorithms.
|
||||
*/
|
||||
static int ipath_ht_get_base_info(struct ipath_portdata *pd, void *kbase)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -1293,7 +1293,7 @@ int __attribute__((weak)) ipath_unordered_wc(void)
|
|||
* @kbase: ipath_base_info pointer
|
||||
*
|
||||
* We set the PCIE flag because the lower bandwidth on PCIe vs
|
||||
* HyperTransport can affect some user packet algorithims.
|
||||
* HyperTransport can affect some user packet algorithms.
|
||||
*/
|
||||
static int ipath_pe_get_base_info(struct ipath_portdata *pd, void *kbase)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ EXPORT_SYMBOL(ps2_drain);
|
|||
|
||||
int ps2_is_keyboard_id(char id_byte)
|
||||
{
|
||||
const static char keyboard_ids[] = {
|
||||
static const char keyboard_ids[] = {
|
||||
0xab, /* Regular keyboards */
|
||||
0xac, /* NCD Sun keyboard */
|
||||
0x2b, /* Trust keyboard, translated */
|
||||
|
|
|
|||
|
|
@ -1680,7 +1680,7 @@ static void isdn_ppp_mp_receive(isdn_net_dev * net_dev, isdn_net_local * lp,
|
|||
* - we hit a gap in the sequence, so no reassembly/processing is
|
||||
* possible ('start' would be set to NULL)
|
||||
*
|
||||
* algorightm for this code is derived from code in the book
|
||||
* algorithm for this code is derived from code in the book
|
||||
* 'PPP Design And Debugging' by James Carlson (Addison-Wesley)
|
||||
*/
|
||||
while (start != NULL || newfrag != NULL) {
|
||||
|
|
|
|||
|
|
@ -915,7 +915,7 @@ static int dvb_frontend_ioctl(struct inode *inode, struct file *file,
|
|||
fetunesettings.parameters.inversion = INVERSION_AUTO;
|
||||
}
|
||||
if (fe->ops.info.type == FE_OFDM) {
|
||||
/* without hierachical coding code_rate_LP is irrelevant,
|
||||
/* without hierarchical coding code_rate_LP is irrelevant,
|
||||
* so we tolerate the otherwise invalid FEC_NONE setting */
|
||||
if (fepriv->parameters.u.ofdm.hierarchy_information == HIERARCHY_NONE &&
|
||||
fepriv->parameters.u.ofdm.code_rate_LP == FEC_NONE)
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ static int dib3000mb_set_frontend(struct dvb_frontend* fe,
|
|||
default:
|
||||
return -EINVAL;
|
||||
}
|
||||
deb_setf("hierachy: ");
|
||||
deb_setf("hierarchy: ");
|
||||
switch (ofdm->hierarchy_information) {
|
||||
case HIERARCHY_NONE:
|
||||
deb_setf("none ");
|
||||
|
|
|
|||
|
|
@ -158,7 +158,7 @@ static unsigned int pvr2_msp3400_describe(struct pvr2_msp3400_handler *ctxt,
|
|||
}
|
||||
|
||||
|
||||
const static struct pvr2_i2c_handler_functions msp3400_funcs = {
|
||||
static const struct pvr2_i2c_handler_functions msp3400_funcs = {
|
||||
.detach = (void (*)(void *))pvr2_msp3400_detach,
|
||||
.check = (int (*)(void *))msp3400_check,
|
||||
.update = (void (*)(void *))msp3400_update,
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ static void decoder_reset(struct pvr2_v4l_cx2584x *ctxt)
|
|||
}
|
||||
|
||||
|
||||
const static struct pvr2_i2c_handler_functions hfuncs = {
|
||||
static const struct pvr2_i2c_handler_functions hfuncs = {
|
||||
.detach = (void (*)(void *))decoder_detach,
|
||||
.check = (int (*)(void *))decoder_check,
|
||||
.update = (void (*)(void *))decoder_update,
|
||||
|
|
|
|||
|
|
@ -78,14 +78,14 @@ struct std_name {
|
|||
#define CSTD_ALL (CSTD_PAL|CSTD_NTSC|CSTD_SECAM)
|
||||
|
||||
/* Mapping of standard bits to color system */
|
||||
const static struct std_name std_groups[] = {
|
||||
static const struct std_name std_groups[] = {
|
||||
{"PAL",CSTD_PAL},
|
||||
{"NTSC",CSTD_NTSC},
|
||||
{"SECAM",CSTD_SECAM},
|
||||
};
|
||||
|
||||
/* Mapping of standard bits to modulation system */
|
||||
const static struct std_name std_items[] = {
|
||||
static const struct std_name std_items[] = {
|
||||
{"B",TSTD_B},
|
||||
{"B1",TSTD_B1},
|
||||
{"D",TSTD_D},
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ static unsigned int pvr2_tuner_describe(struct pvr2_tuner_handler *ctxt,char *bu
|
|||
}
|
||||
|
||||
|
||||
const static struct pvr2_i2c_handler_functions tuner_funcs = {
|
||||
static const struct pvr2_i2c_handler_functions tuner_funcs = {
|
||||
.detach = (void (*)(void *))pvr2_tuner_detach,
|
||||
.check = (int (*)(void *))tuner_check,
|
||||
.update = (void (*)(void *))tuner_update,
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ static unsigned int decoder_describe(struct pvr2_v4l_decoder *ctxt,char *buf,uns
|
|||
}
|
||||
|
||||
|
||||
const static struct pvr2_i2c_handler_functions hfuncs = {
|
||||
static const struct pvr2_i2c_handler_functions hfuncs = {
|
||||
.detach = (void (*)(void *))decoder_detach,
|
||||
.check = (int (*)(void *))decoder_check,
|
||||
.update = (void (*)(void *))decoder_update,
|
||||
|
|
|
|||
|
|
@ -126,7 +126,7 @@ static void wm8775_update(struct pvr2_v4l_wm8775 *ctxt)
|
|||
}
|
||||
|
||||
|
||||
const static struct pvr2_i2c_handler_functions hfuncs = {
|
||||
static const struct pvr2_i2c_handler_functions hfuncs = {
|
||||
.detach = (void (*)(void *))wm8775_detach,
|
||||
.check = (int (*)(void *))wm8775_check,
|
||||
.update = (void (*)(void *))wm8775_update,
|
||||
|
|
|
|||
|
|
@ -3253,7 +3253,7 @@ struct e1000_host_command_info {
|
|||
#define IFE_PMC_AUTO_MDIX 0x0080 /* 1=enable MDI/MDI-X feature, default 0=disabled */
|
||||
#define IFE_PMC_FORCE_MDIX 0x0040 /* 1=force MDIX-X, 0=force MDI */
|
||||
#define IFE_PMC_MDIX_STATUS 0x0020 /* 1=MDI-X, 0=MDI */
|
||||
#define IFE_PMC_AUTO_MDIX_COMPLETE 0x0010 /* Resolution algorthm is completed */
|
||||
#define IFE_PMC_AUTO_MDIX_COMPLETE 0x0010 /* Resolution algorithm is completed */
|
||||
#define IFE_PMC_MDIX_MODE_SHIFT 6
|
||||
#define IFE_PHC_MDIX_RESET_ALL_MASK 0x0000 /* Disable auto MDI-X */
|
||||
|
||||
|
|
|
|||
|
|
@ -707,13 +707,6 @@ static int eexp_xmit(struct sk_buff *buf, struct net_device *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/*
|
||||
* Handle an EtherExpress interrupt
|
||||
* If we've finished initializing, start the RU and CU up.
|
||||
* If we've already started, reap tx buffers, handle any received packets,
|
||||
* check to make sure we've not become wedged.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Handle an EtherExpress interrupt
|
||||
* If we've finished initializing, start the RU and CU up.
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ config BAYCOM_SER_HDX
|
|||
---help---
|
||||
This is one of two drivers for Baycom style simple amateur radio
|
||||
modems that connect to a serial interface. The driver supports the
|
||||
ser12 design in full-duplex mode. This is the old driver. It is
|
||||
ser12 design in half-duplex mode. This is the old driver. It is
|
||||
still provided in case your serial interface chip does not work with
|
||||
the full-duplex driver. This driver is depreciated. To configure
|
||||
the driver, use the sethdlc utility available in the standard ax25
|
||||
|
|
@ -190,3 +190,4 @@ config YAM
|
|||
To compile this driver as a module, choose M here: the module
|
||||
will be called yam.
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1168,7 +1168,7 @@ wv_mmc_show(struct net_device * dev)
|
|||
m.mmr_unused0[6],
|
||||
m.mmr_unused0[7]);
|
||||
#endif /* DEBUG_SHOW_UNUSED */
|
||||
printk(KERN_DEBUG "Encryption algorythm: %02X - Status: %02X\n",
|
||||
printk(KERN_DEBUG "Encryption algorithm: %02X - Status: %02X\n",
|
||||
m.mmr_des_avail, m.mmr_des_status);
|
||||
#ifdef DEBUG_SHOW_UNUSED
|
||||
printk(KERN_DEBUG "mmc_unused1[]: %02X:%02X:%02X:%02X:%02X\n",
|
||||
|
|
@ -3590,9 +3590,9 @@ wv_82593_config(struct net_device * dev)
|
|||
cfblk.acloc = TRUE; /* Disable source addr insertion by i82593 */
|
||||
cfblk.preamb_len = 0; /* 2 bytes preamble (SFD) */
|
||||
cfblk.loopback = FALSE;
|
||||
cfblk.lin_prio = 0; /* conform to 802.3 backoff algoritm */
|
||||
cfblk.exp_prio = 5; /* conform to 802.3 backoff algoritm */
|
||||
cfblk.bof_met = 1; /* conform to 802.3 backoff algoritm */
|
||||
cfblk.lin_prio = 0; /* conform to 802.3 backoff algorithm */
|
||||
cfblk.exp_prio = 5; /* conform to 802.3 backoff algorithm */
|
||||
cfblk.bof_met = 1; /* conform to 802.3 backoff algorithm */
|
||||
cfblk.ifrm_spc = 0x20 >> 4; /* 32 bit times interframe spacing */
|
||||
cfblk.slottim_low = 0x20 >> 5; /* 32 bit times slot time */
|
||||
cfblk.slottim_hi = 0x0;
|
||||
|
|
|
|||
|
|
@ -85,7 +85,7 @@ struct aer_rpc {
|
|||
struct mutex rpc_mutex; /*
|
||||
* only one thread could do
|
||||
* recovery on the same
|
||||
* root port hierachy
|
||||
* root port hierarchy
|
||||
*/
|
||||
wait_queue_head_t wait_release;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@
|
|||
|
||||
/*====================================================================*/
|
||||
|
||||
#define FIND_FIRST_BIT(n) ((n) - ((n) & ((n)-1)))
|
||||
|
||||
/* Offsets in the Expansion ROM Image Header */
|
||||
#define ROM_SIGNATURE 0x0000 /* 2 bytes */
|
||||
#define ROM_DATA_PTR 0x0018 /* 2 bytes */
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@
|
|||
/* NOTE: It seems to me that the documentation regarding the
|
||||
pcd8584t/pcf8584 does not show the correct way to address the i2c bus.
|
||||
Based on the information on the I2C bus itself and the remainder of
|
||||
the Phillips docs the following algorithims apper to be correct. I am
|
||||
the Phillips docs the following algorithms appear to be correct. I am
|
||||
fairly certain that the flowcharts in the phillips docs are wrong. */
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -230,6 +230,7 @@ config SCSI_SCAN_ASYNC
|
|||
The SCSI subsystem can probe for devices while the rest of the
|
||||
system continues booting, and even probe devices on different
|
||||
busses in parallel, leading to a significant speed-up.
|
||||
|
||||
If you have built SCSI as modules, enabling this option can
|
||||
be a problem as the devices may not have been found by the
|
||||
time your system expects them to have been. You can load the
|
||||
|
|
@ -237,8 +238,8 @@ config SCSI_SCAN_ASYNC
|
|||
If you build your SCSI drivers into the kernel, then everything
|
||||
will work fine if you say Y here.
|
||||
|
||||
You can override this choice by specifying scsi_mod.scan="sync"
|
||||
or "async" on the kernel's command line.
|
||||
You can override this choice by specifying "scsi_mod.scan=sync"
|
||||
or async on the kernel's command line.
|
||||
|
||||
menu "SCSI Transports"
|
||||
depends on SCSI
|
||||
|
|
|
|||
|
|
@ -1067,7 +1067,7 @@ static int __devinit inia100_probe_one(struct pci_dev *pdev,
|
|||
goto out_disable_device;
|
||||
}
|
||||
|
||||
/* <02> read from base address + 0x50 offset to get the bios balue. */
|
||||
/* <02> read from base address + 0x50 offset to get the bios value. */
|
||||
bios = ORC_RDWORD(port, 0x50);
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ static void eesoxscsi_buffer_in(void *buf, int length, void __iomem *base)
|
|||
const void __iomem *reg_fas = base + EESOX_FAS216_OFFSET;
|
||||
const void __iomem *reg_dmastat = base + EESOX_DMASTAT;
|
||||
const void __iomem *reg_dmadata = base + EESOX_DMADATA;
|
||||
const register unsigned long mask = 0xffff;
|
||||
register const unsigned long mask = 0xffff;
|
||||
|
||||
do {
|
||||
unsigned int status;
|
||||
|
|
|
|||
|
|
@ -5574,14 +5574,14 @@ static ssize_t osst_version_show(struct device_driver *ddd, char *buf)
|
|||
|
||||
static DRIVER_ATTR(version, S_IRUGO, osst_version_show, NULL);
|
||||
|
||||
static int osst_create_driverfs_files(struct device_driver *driverfs)
|
||||
static int osst_create_sysfs_files(struct device_driver *sysfs)
|
||||
{
|
||||
return driver_create_file(driverfs, &driver_attr_version);
|
||||
return driver_create_file(sysfs, &driver_attr_version);
|
||||
}
|
||||
|
||||
static void osst_remove_driverfs_files(struct device_driver *driverfs)
|
||||
static void osst_remove_sysfs_files(struct device_driver *sysfs)
|
||||
{
|
||||
driver_remove_file(driverfs, &driver_attr_version);
|
||||
driver_remove_file(sysfs, &driver_attr_version);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
@ -5953,7 +5953,7 @@ static int __init init_osst(void)
|
|||
if (err)
|
||||
goto err_out_chrdev;
|
||||
|
||||
err = osst_create_driverfs_files(&osst_template.gendrv);
|
||||
err = osst_create_sysfs_files(&osst_template.gendrv);
|
||||
if (err)
|
||||
goto err_out_scsidrv;
|
||||
|
||||
|
|
@ -5973,7 +5973,7 @@ static void __exit exit_osst (void)
|
|||
int i;
|
||||
struct osst_tape * STp;
|
||||
|
||||
osst_remove_driverfs_files(&osst_template.gendrv);
|
||||
osst_remove_sysfs_files(&osst_template.gendrv);
|
||||
scsi_unregister_driver(&osst_template.gendrv);
|
||||
unregister_chrdev(OSST_MAJOR, "osst");
|
||||
osst_sysfs_cleanup();
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@
|
|||
#define SCSI_TIMEOUT (2*HZ)
|
||||
|
||||
/*
|
||||
* Prefix values for the SCSI id's (stored in driverfs name field)
|
||||
* Prefix values for the SCSI id's (stored in sysfs name field)
|
||||
*/
|
||||
#define SCSI_UID_SER_NUM 'S'
|
||||
#define SCSI_UID_UNKNOWN 'Z'
|
||||
|
|
|
|||
|
|
@ -855,7 +855,7 @@ static FC_CLASS_DEVICE_ATTR(rport, fast_io_fail_tmo, S_IRUGO | S_IWUSR,
|
|||
|
||||
/*
|
||||
* Note: in the target show function we recognize when the remote
|
||||
* port is in the heirarchy and do not allow the driver to get
|
||||
* port is in the hierarchy and do not allow the driver to get
|
||||
* involved in sysfs functions. The driver only gets involved if
|
||||
* it's the "old" style that doesn't use rports.
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -500,7 +500,7 @@ struct sas_phy *sas_phy_alloc(struct device *parent, int number)
|
|||
EXPORT_SYMBOL(sas_phy_alloc);
|
||||
|
||||
/**
|
||||
* sas_phy_add -- add a SAS PHY to the device hierachy
|
||||
* sas_phy_add -- add a SAS PHY to the device hierarchy
|
||||
* @phy: The PHY to be added
|
||||
*
|
||||
* Publishes a SAS PHY to the rest of the system.
|
||||
|
|
@ -1265,7 +1265,7 @@ struct sas_rphy *sas_expander_alloc(struct sas_port *parent,
|
|||
EXPORT_SYMBOL(sas_expander_alloc);
|
||||
|
||||
/**
|
||||
* sas_rphy_add -- add a SAS remote PHY to the device hierachy
|
||||
* sas_rphy_add -- add a SAS remote PHY to the device hierarchy
|
||||
* @rphy: The remote PHY to be added
|
||||
*
|
||||
* Publishes a SAS remote PHY to the rest of the system.
|
||||
|
|
|
|||
|
|
@ -195,8 +195,8 @@ static int sgl_unmap_user_pages(struct scatterlist *, const unsigned int, int);
|
|||
static int st_probe(struct device *);
|
||||
static int st_remove(struct device *);
|
||||
|
||||
static int do_create_driverfs_files(void);
|
||||
static void do_remove_driverfs_files(void);
|
||||
static int do_create_sysfs_files(void);
|
||||
static void do_remove_sysfs_files(void);
|
||||
static int do_create_class_files(struct scsi_tape *, int, int);
|
||||
|
||||
static struct scsi_driver st_template = {
|
||||
|
|
@ -4193,7 +4193,7 @@ static int __init init_st(void)
|
|||
if (err)
|
||||
goto err_chrdev;
|
||||
|
||||
err = do_create_driverfs_files();
|
||||
err = do_create_sysfs_files();
|
||||
if (err)
|
||||
goto err_scsidrv;
|
||||
|
||||
|
|
@ -4211,7 +4211,7 @@ err_class:
|
|||
|
||||
static void __exit exit_st(void)
|
||||
{
|
||||
do_remove_driverfs_files();
|
||||
do_remove_sysfs_files();
|
||||
scsi_unregister_driver(&st_template.gendrv);
|
||||
unregister_chrdev_region(MKDEV(SCSI_TAPE_MAJOR, 0),
|
||||
ST_MAX_TAPE_ENTRIES);
|
||||
|
|
@ -4249,43 +4249,43 @@ static ssize_t st_version_show(struct device_driver *ddd, char *buf)
|
|||
}
|
||||
static DRIVER_ATTR(version, S_IRUGO, st_version_show, NULL);
|
||||
|
||||
static int do_create_driverfs_files(void)
|
||||
static int do_create_sysfs_files(void)
|
||||
{
|
||||
struct device_driver *driverfs = &st_template.gendrv;
|
||||
struct device_driver *sysfs = &st_template.gendrv;
|
||||
int err;
|
||||
|
||||
err = driver_create_file(driverfs, &driver_attr_try_direct_io);
|
||||
err = driver_create_file(sysfs, &driver_attr_try_direct_io);
|
||||
if (err)
|
||||
return err;
|
||||
err = driver_create_file(driverfs, &driver_attr_fixed_buffer_size);
|
||||
err = driver_create_file(sysfs, &driver_attr_fixed_buffer_size);
|
||||
if (err)
|
||||
goto err_try_direct_io;
|
||||
err = driver_create_file(driverfs, &driver_attr_max_sg_segs);
|
||||
err = driver_create_file(sysfs, &driver_attr_max_sg_segs);
|
||||
if (err)
|
||||
goto err_attr_fixed_buf;
|
||||
err = driver_create_file(driverfs, &driver_attr_version);
|
||||
err = driver_create_file(sysfs, &driver_attr_version);
|
||||
if (err)
|
||||
goto err_attr_max_sg;
|
||||
|
||||
return 0;
|
||||
|
||||
err_attr_max_sg:
|
||||
driver_remove_file(driverfs, &driver_attr_max_sg_segs);
|
||||
driver_remove_file(sysfs, &driver_attr_max_sg_segs);
|
||||
err_attr_fixed_buf:
|
||||
driver_remove_file(driverfs, &driver_attr_fixed_buffer_size);
|
||||
driver_remove_file(sysfs, &driver_attr_fixed_buffer_size);
|
||||
err_try_direct_io:
|
||||
driver_remove_file(driverfs, &driver_attr_try_direct_io);
|
||||
driver_remove_file(sysfs, &driver_attr_try_direct_io);
|
||||
return err;
|
||||
}
|
||||
|
||||
static void do_remove_driverfs_files(void)
|
||||
static void do_remove_sysfs_files(void)
|
||||
{
|
||||
struct device_driver *driverfs = &st_template.gendrv;
|
||||
struct device_driver *sysfs = &st_template.gendrv;
|
||||
|
||||
driver_remove_file(driverfs, &driver_attr_version);
|
||||
driver_remove_file(driverfs, &driver_attr_max_sg_segs);
|
||||
driver_remove_file(driverfs, &driver_attr_fixed_buffer_size);
|
||||
driver_remove_file(driverfs, &driver_attr_try_direct_io);
|
||||
driver_remove_file(sysfs, &driver_attr_version);
|
||||
driver_remove_file(sysfs, &driver_attr_max_sg_segs);
|
||||
driver_remove_file(sysfs, &driver_attr_fixed_buffer_size);
|
||||
driver_remove_file(sysfs, &driver_attr_try_direct_io);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1020,7 +1020,7 @@ static struct SYM_FWA_SCR SYM_FWA_SCR = {
|
|||
* It shall be a tagged command.
|
||||
* Read SIMPLE+TAG.
|
||||
* The C code will deal with errors.
|
||||
* Agressive optimization, is'nt it? :)
|
||||
* Aggressive optimization, isn't it? :)
|
||||
*/
|
||||
SCR_MOVE_ABS (2) ^ SCR_MSG_IN,
|
||||
HADDR_1 (msgin),
|
||||
|
|
@ -1044,7 +1044,7 @@ static struct SYM_FWA_SCR SYM_FWA_SCR = {
|
|||
RADDR_1 (dsa),
|
||||
/*
|
||||
* The SIDL still contains the TAG value.
|
||||
* Agressive optimization, isn't it? :):)
|
||||
* Aggressive optimization, isn't it? :):)
|
||||
*/
|
||||
SCR_REG_SFBR (sidl, SCR_SHL, 0),
|
||||
0,
|
||||
|
|
|
|||
|
|
@ -956,7 +956,7 @@ static struct SYM_FWA_SCR SYM_FWA_SCR = {
|
|||
* It shall be a tagged command.
|
||||
* Read SIMPLE+TAG.
|
||||
* The C code will deal with errors.
|
||||
* Agressive optimization, is'nt it? :)
|
||||
* Aggressive optimization, isn't it? :)
|
||||
*/
|
||||
SCR_MOVE_ABS (2) ^ SCR_MSG_IN,
|
||||
HADDR_1 (msgin),
|
||||
|
|
@ -968,7 +968,7 @@ static struct SYM_FWA_SCR SYM_FWA_SCR = {
|
|||
offsetof(struct sym_lcb, head.itlq_tbl_sa),
|
||||
/*
|
||||
* The SIDL still contains the TAG value.
|
||||
* Agressive optimization, isn't it? :):)
|
||||
* Aggressive optimization, isn't it? :):)
|
||||
*/
|
||||
SCR_REG_SFBR (sidl, SCR_SHL, 0),
|
||||
0,
|
||||
|
|
|
|||
|
|
@ -322,7 +322,7 @@ static inline void remove_debug_files (struct ehci_hcd *bus) { }
|
|||
|
||||
#else
|
||||
|
||||
/* troubleshooting help: expose state in driverfs */
|
||||
/* troubleshooting help: expose state in sysfs */
|
||||
|
||||
#define speed_char(info1) ({ char tmp; \
|
||||
switch (info1 & (3 << 12)) { \
|
||||
|
|
|
|||
Loading…
Reference in a new issue